File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -97,11 +97,17 @@ jobs:
97
97
build-windows :
98
98
name : Build & Test (Windows, VS 2022)
99
99
strategy :
100
+ fail-fast : false
100
101
matrix :
101
102
arch : [x86, amd64, arm64]
102
103
runs-on : windows-2022
103
104
steps :
104
105
- *checkout
106
+ - name : Prepare Caches
107
+ uses : actions/cache@v4
108
+ with :
109
+ path : _build/_cache
110
+ key : msvc-${{matrix.arch}}
105
111
- name : Build & Test
106
112
shell : pwsh
107
113
# 17.* select VS 2022
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ $this_dir = $PSScriptRoot
27
27
28
28
$root = Split-Path - Parent $this_dir
29
29
30
+ # Set the directory where vcpkg will store its binary cache artifacts. This can
31
+ # be persisted between CI runs
32
+ $env: VCPKG_DEFAULT_BINARY_CACHE = " $root /_build/_cache/vcpkg"
33
+ [void ](New-Item - ItemType Directory $env: VCPKG_DEFAULT_BINARY_CACHE - Force)
34
+
30
35
Write-Verbose " Loading uv environment..."
31
36
$uv_env = Get-UvEnvironment - ArgumentList " --group=build"
32
37
Write-Verbose " Loading MSVS environment..."
You can’t perform that action at this time.
0 commit comments