Skip to content

Commit 1afbda5

Browse files
committed
Create vcpkg cache directory in CI
1 parent 1f26712 commit 1afbda5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/actions/setup-native-prereqs/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ runs:
4343
if: inputs.target == 'x86_64-pc-windows-msvc'
4444
shell: pwsh
4545
run: |
46+
if ($env:VCPKG_DEFAULT_BINARY_CACHE) {
47+
New-Item -ItemType Directory -Force -Path $env:VCPKG_DEFAULT_BINARY_CACHE | Out-Null
48+
}
49+
4650
# vcpkg is pre-installed on GitHub-hosted Windows runners
4751
vcpkg install glib:x64-windows libusb:x64-windows fftw3:x64-windows pkgconf:x64-windows
4852
@@ -62,5 +66,9 @@ runs:
6266
if: inputs.target == 'aarch64-pc-windows-msvc'
6367
shell: pwsh
6468
run: |
69+
if ($env:VCPKG_DEFAULT_BINARY_CACHE) {
70+
New-Item -ItemType Directory -Force -Path $env:VCPKG_DEFAULT_BINARY_CACHE | Out-Null
71+
}
72+
6573
# vcpkg is pre-installed on GitHub-hosted Windows runners
6674
vcpkg install glib:arm64-windows libusb:arm64-windows fftw3:arm64-windows

0 commit comments

Comments
 (0)