Skip to content
This repository was archived by the owner on Oct 23, 2022. It is now read-only.

Commit df11329

Browse files
ci: enable caching for vcpkg
1 parent e2f31bc commit df11329

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,22 @@ jobs:
8383
if: matrix.platform.host == 'macos-latest'
8484
run: brew install llvm openssl
8585

86-
- name: Install dependencies (windows)
86+
- name: Install and cache vcpkg (windows)
8787
uses: lukka/run-vcpkg@v7.4
8888
id: windows-runvcpkg
8989
if: matrix.platform.host == 'windows-latest'
9090
with:
9191
vcpkgDirectory: '${{ runner.workspace }}/vcpkg'
9292
vcpkgTriplet: 'x64-windows'
93-
vcpkgArguments: 'openssl'
9493
vcpkgGitCommitId: '261c458af6e3eed5d099144aff95d2b5035f656b' # unknown for openssl-sys v0.9.65
94+
setupOnly: true # required for caching
95+
96+
- name: Install depedencies (windows)
97+
if: matrix.platform.host == 'windows-latest'
98+
run: "$VCPKG_ROOT/vcpkg install openssl:x64-windows"
99+
shell: bash
100+
env:
101+
VCPKGRS_DYNAMIC: 1
95102

96103
- name: Install rust toolchain
97104
uses: hecrj/setup-rust-action@v1.3.4

0 commit comments

Comments
 (0)