summaryrefslogtreecommitdiff
diff options
authorHiroshi SHIBATA <[email protected]>2025-07-14 18:23:13 +0900
committerHiroshi SHIBATA <[email protected]>2025-07-15 08:34:13 +0900
commitd23f666da342d1f6fb4543c4928ad683630ce0c9 (patch)
tree555c49df01c99910963a41f4ffbc614065ca8f59
parenta6d483971a69436f5055cc9b5519256ef2630eb9 (diff)
Split restore and save actions from action/cache. We need to save always vcpkg cacheHEADmaster
-rw-r--r--.github/workflows/windows.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index c005beb8ad..47e3f53241 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -86,9 +86,8 @@ jobs:
scoop install vcpkg uutils-coreutils [email protected]
shell: pwsh
- # vcpkg built-in cache is not working now
- name: Restore vcpkg artifact
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
+ uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: src\vcpkg_installed
key: windows-${{ matrix.os }}-vcpkg-${{ hashFiles('src/vcpkg.json') }}
@@ -98,6 +97,12 @@ jobs:
vcpkg install --vcpkg-root=C:\Users\runneradmin\scoop\apps\vcpkg\current
working-directory: src
+ - name: Save vcpkg artifact
+ uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
+ with:
+ path: src\vcpkg_installed
+ key: windows-${{ matrix.os }}-vcpkg-${{ hashFiles('src/vcpkg.json') }}
+
- name: setup env
# Available Ruby versions: https://github.com/actions/runner-images/blob/main/images/windows/Windows2019-Readme.md#ruby
# %TEMP% is inconsistent with %TMP% and test-all expects they are consistent.
close