Skip to content

Commit 89f50af

Browse files
committed
Update Win OpenSSL and build shared libraries
[windows-openssl]
1 parent 8144e24 commit 89f50af

File tree

1 file changed

+35
-24
lines changed

1 file changed

+35
-24
lines changed
Lines changed: 35 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1+
---
12
name: windows-openssl
2-
3-
4-
on: [push]
5-
3+
on:
4+
- push
65
jobs:
76
Build-Libs-OpenSSL-Win:
8-
name: 'Build-OpenSSL-Lib-Windows'
7+
name: Build-OpenSSL-Lib-Windows
98
runs-on: windows-latest
10-
if: |
9+
if: |+
1110
contains(github.event.head_commit.message, '[all]') ||
1211
contains(github.event.head_commit.message, '[windows]') ||
1312
contains(github.event.head_commit.message, '[windows-openssl]') ||
@@ -18,16 +17,14 @@ jobs:
1817
arch:
1918
- amd64
2019
- amd64_x86
21-
2220
steps:
23-
- name: 'Get openssl'
21+
- name: Get openssl
2422
uses: actions/checkout@v3
2523
with:
2624
repository: openssl/openssl
27-
ref: openssl-3.0.13
25+
ref: openssl-3.0.16
2826
path: openssl
29-
30-
- name: Setup msbuild environment
27+
- name: Setup msbuild environment
3128
uses: ilammy/msvc-dev-cmd@v1
3229
with:
3330
arch: ${{ matrix.arch }}
@@ -48,6 +45,17 @@ jobs:
4845
mkdir build/win32
4946
move libcrypto.lib build/win32
5047
move libssl.lib build/win32
48+
- name: Build Shared OpenSSL x86
49+
if: matrix.arch == 'amd64_x86'
50+
run: |
51+
cd openssl
52+
53+
perl Configure no-tests VC-WIN32
54+
nmake
55+
mkdir build
56+
mkdir build/win32
57+
move libcrypto3.dll build/win32
58+
move libssl3.dll build/win32
5159
- name: Build OpenSSL x64
5260
if: matrix.arch == 'amd64'
5361
run: |
@@ -60,41 +68,44 @@ jobs:
6068
move libcrypto.lib build/win64
6169
move libssl.lib build/win64
6270
move include build/include
63-
71+
- name: Build Shared OpenSSL x64
72+
if: matrix.arch == 'amd64'
73+
run: |
74+
cd openssl
75+
76+
perl Configure no-tests VC-WIN64A
77+
nmake
78+
mkdir build
79+
mkdir build/win64
80+
move libcrypto-3-x64.dll build/win64
81+
move libssl-3-x64.dll build/win64
6482
- name: Archive Windows OpenSSL libs
65-
uses: actions/upload-artifact@v3
83+
uses: actions/upload-artifact@v4
6684
with:
6785
retention-days: 1
6886
name: windows-openssl
69-
path: openssl/build
70-
71-
87+
path: openssl/build
7288
github-release:
7389
name: GitHub Release
7490
needs: Build-Libs-OpenSSL-Win
7591
runs-on: ubuntu-latest
7692
if: startsWith(github.ref, 'refs/tags/')
77-
7893
steps:
7994
- name: Setup | Checkout
8095
uses: actions/checkout@v2
81-
8296
- name: Setup | Artifacts
8397
uses: actions/download-artifact@v2
84-
8598
- name: Setup | Checksums
86-
run: for file in $(find ./ -name '*.lib' -or -name '*.dll' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done
87-
99+
run: for file in $(find ./ -name '*.lib' -or -name '*.dll' ); do openssl dgst
100+
-sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done
88101
- name: Zip ALL
89102
run: for file in *; do zip -r ${file%.*}.zip $file; done
90-
91103
- name: Upload binaries to release
92104
uses: svenstaro/upload-release-action@v2
93105
with:
94106
repo_token: ${{ secrets.GITHUB_TOKEN }}
95107
file: windows-openssl.zip
96108
tag: ${{ github.ref }}
97109
overwrite: true
98-
file_glob: true
99-
110+
file_glob: true
100111

0 commit comments

Comments
 (0)