Skip to content

Commit 341c812

Browse files
committed
fix incorrect caching
1 parent 4d65135 commit 341c812

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/ci-pr-validation.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,9 @@ jobs:
222222
arch: '-A Win32'
223223

224224
steps:
225-
- name: checkout
226-
uses: actions/checkout@v3
225+
- uses: actions/checkout@v4
226+
with:
227+
submodules: true
227228

228229
- name: Restore vcpkg and its artifacts.
229230
uses: actions/cache@v4
@@ -232,10 +233,11 @@ jobs:
232233
with:
233234
path: |
234235
${{ github.workspace }}/vcpkg_installed
235-
${{ env.VCPKG_ROOT }}/installed
236236
${{ env.VCPKG_ROOT }}/downloads
237-
key: ${{ runner.os }}-${{ matrix.triplet }}-${{ hashFiles('vcpkg.json') }}
238-
restore-keys: ${{ runner.os }}-${{ matrix.triplet }}-
237+
${{ env.VCPKG_ROOT }}/vcpkg.exe
238+
key: ${{ runner.os }}-${{ matrix.triplet }}-vcpkg-${{ hashFiles('vcpkg.json') }}
239+
restore-keys: |
240+
${{ runner.os }}-${{ matrix.triplet }}-vcpkg-
239241
save-always: true
240242

241243
- name: Get vcpkg(windows)

0 commit comments

Comments
 (0)