Skip to content

Commit 5164e39

Browse files
committed
try to fix github windows CI
1 parent a0f628f commit 5164e39

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
os: [ubuntu-latest, macos-latest]
15+
os: [ubuntu-latest, macos-latest, windows-latest]
1616
rust: [nightly, beta, stable, 1.85.0]
1717
steps:
1818
- uses: actions/checkout@v4
@@ -24,6 +24,14 @@ jobs:
2424
profile: minimal
2525
override: true
2626

27+
- name: Step VCPKG
28+
run: echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
29+
if: startsWith(matrix.os, 'windows')
30+
31+
- name: Install OpenSSL
32+
run: vcpkg install openssl:x64-windows-static-md
33+
if: startsWith(matrix.os, 'windows')
34+
2735
- name: Run cargo check
2836
uses: actions-rs/cargo@v1
2937
with:
@@ -38,6 +46,7 @@ jobs:
3846
args: -Z features=dev_dep
3947

4048
- name: Run cargo test
49+
if: matrix.os != 'windows-latest'
4150
uses: actions-rs/cargo@v1
4251
with:
4352
command: test

0 commit comments

Comments
 (0)