Skip to content

Commit 4f1ebd3

Browse files
committed
Try to fix OpenSSL linking under Windows CI
It doesn't seem to be pre-installed any more. Try installing binaries with choco instead of building it from scratch.
1 parent ec74e16 commit 4f1ebd3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v3
21-
- name: Set OPENSSL_DIR for Windows
21+
- name: Install OpenSSL
22+
if: startsWith(matrix.os, 'windows')
23+
run: |
24+
dir "C:\Program Files\OpenSSL"
25+
choco install openssl -y --no-progress
26+
dir "C:\Program Files\OpenSSL"
27+
dir "C:\Program Files\OpenSSL-Win64"
28+
- name: Configure OpenSSL link path
2229
if: startsWith(matrix.os, 'windows')
2330
run: echo "OPENSSL_DIR=C:\Program Files\OpenSSL" >> $env:GITHUB_ENV
2431
- name: Build

0 commit comments

Comments
 (0)