Skip to content

Commit 58c2f2a

Browse files
committed
use windows preinstalled openssl
1 parent 5063f0e commit 58c2f2a

File tree

2 files changed

+65
-62
lines changed

2 files changed

+65
-62
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,15 @@ jobs:
99
matrix:
1010
os: [ windows-latest, ubuntu-latest ]
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1313

14-
# on windows we need to install openssl
15-
- name: Get vcpkg
14+
# Use OpenSSL on Windows. It is the ShiningLight.OpenSSL.Dev package.
15+
- name: Set openssl environment variables
1616
if: runner.os == 'Windows'
17-
uses: lukka/run-vcpkg@v11
18-
with:
19-
vcpkgGitCommitId: dd3adcf020e69077e83e92a0a293ceca734f6288
20-
21-
- name: vcpkg install
22-
if: runner.os == 'Windows'
23-
run: vcpkg install openssl:x64-windows-static-md
17+
run: |
18+
echo "OPENSSL_DIR=C:/Program Files/OpenSSL" >> $env:GITHUB_ENV
19+
echo "OPENSSL_LIB_DIR=C:/Program Files/OpenSSL/lib/VC/x64/MDd" >> $env:GITHUB_ENV
20+
shell: pwsh
2421

2522
- name: Install rust stable
2623
uses: dtolnay/rust-toolchain@stable

Cargo.lock

Lines changed: 58 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)