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:
9797 build-windows :
9898 name : Build & Test (Windows, VS 2022)
9999 strategy :
100+ fail-fast : false
100101 matrix :
101102 arch : [x86, amd64, arm64]
102103 runs-on : windows-2022
103104 steps :
104105 - *checkout
106+ - name : Prepare Caches
107+ uses : actions/cache@v4
108+ with :
109+ path : _build/_cache
110+ key : msvc-${{matrix.arch}}
105111 - name : Build & Test
106112 shell : pwsh
107113 # 17.* select VS 2022
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ $this_dir = $PSScriptRoot
2727
2828$root = Split-Path - Parent $this_dir
2929
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+
3035Write-Verbose " Loading uv environment..."
3136$uv_env = Get-UvEnvironment - ArgumentList " --group=build"
3237Write-Verbose " Loading MSVS environment..."
You can’t perform that action at this time.
0 commit comments