Skip to content

Commit 0d387c4

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 0d387c4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/rust.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,14 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v3
21-
- name: Set OPENSSL_DIR for Windows
21+
- name: Configure OpenSSL
2222
if: startsWith(matrix.os, 'windows')
23-
run: echo "OPENSSL_DIR=C:\Program Files\OpenSSL" >> $env:GITHUB_ENV
23+
run: |
24+
dir "C:\Program Files\OpenSSL"
25+
dir "C:\Program Files\OpenSSL\lib"
26+
echo "OPENSSL_DIR=C:\Program Files\OpenSSL" >> $env:GITHUB_ENV
27+
echo "OPENSSL_INCLUDE_DIR=C:\Program Files\OpenSSL\include" >> $env:GITHUB_ENV
28+
echo "OPENSSL_LIB_DIR=C:\Program Files\OpenSSL\lib\VC" >> $env:GITHUB_ENV
2429
- name: Build
2530
run: cargo build --verbose
2631
- name: Run tests

0 commit comments

Comments
 (0)