Skip to content

Commit b86df39

Browse files
committed
Try to fix OpenSSL linking under Windows CI
1 parent ec74e16 commit b86df39

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/rust.yml

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

1919
steps:
2020
- uses: actions/checkout@v3
21-
- name: Set OPENSSL_DIR for Windows
21+
- name: Install OpenSSL
2222
if: startsWith(matrix.os, 'windows')
23-
run: echo "OPENSSL_DIR=C:\Program Files\OpenSSL" >> $env:GITHUB_ENV
23+
run: vcpkg install openssl:x64-windows-static-md
24+
- name: Configure OpenSSL to link via vcpkg
25+
if: startsWith(matrix.os, 'windows')
26+
run: echo "VCPKGRS_DYNAMIC=1" >> $env:GITHUB_ENV
2427
- name: Build
2528
run: cargo build --verbose
2629
- name: Run tests

0 commit comments

Comments
 (0)