summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-07-14 18:23:13 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-07-15 18:34:31 +0900
commitcfdc2465d9fcd14eba512bfa80b5fd7c9e67f18e (patch)
treeeefe4d2cadd0b5da2d3cba706172382ce6538ff2 /.github/workflows
parent596126ee5aa35a65bcaca60b92b5547ef1a9d2da (diff)
Split restore and save actions from action/cache. We need to save always vcpkg cache
Diffstat (limited to '.github/workflows')
-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 0b6c6ed2b7..7a8b5bcb8f 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -112,9 +112,8 @@ jobs:
scoop install vcpkg cmake@3.31.6
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') }}
@@ -124,6 +123,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.