Skip to content

Commit cfdc246

Browse files
committed
Split restore and save actions from action/cache. We need to save always vcpkg cache
1 parent 596126e commit cfdc246

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/windows.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,8 @@ jobs:
112112
scoop install vcpkg [email protected]
113113
shell: pwsh
114114

115-
# vcpkg built-in cache is not working now
116115
- name: Restore vcpkg artifact
117-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
116+
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
118117
with:
119118
path: src\vcpkg_installed
120119
key: windows-${{ matrix.os }}-vcpkg-${{ hashFiles('src/vcpkg.json') }}
@@ -124,6 +123,12 @@ jobs:
124123
vcpkg install --vcpkg-root=C:\Users\runneradmin\scoop\apps\vcpkg\current
125124
working-directory: src
126125

126+
- name: Save vcpkg artifact
127+
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
128+
with:
129+
path: src\vcpkg_installed
130+
key: windows-${{ matrix.os }}-vcpkg-${{ hashFiles('src/vcpkg.json') }}
131+
127132
- name: setup env
128133
# Available Ruby versions: https://github.com/actions/runner-images/blob/main/images/windows/Windows2019-Readme.md#ruby
129134
# %TEMP% is inconsistent with %TMP% and test-all expects they are consistent.

0 commit comments

Comments
 (0)