Skip to content

Commit 607a530

Browse files
committed
fix windows vcpkg cache issue
1 parent e7ce72a commit 607a530

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
uses: actions/checkout@v3
5959

6060
- name: Restore vcpkg and its artifacts.
61-
uses: actions/cache@v3
61+
uses: actions/cache@v4
6262
id: vcpkg-cache
6363
with:
6464
path: |
@@ -68,8 +68,8 @@ jobs:
6868
!${{ env.VCPKG_ROOT }}/buildtrees
6969
!${{ env.VCPKG_ROOT }}/packages
7070
!${{ env.VCPKG_ROOT }}/downloads
71-
key: |
72-
${{ runner.os }}-${{ matrix.triplet}}-${{ hashFiles( 'vcpkg.json' ) }}
71+
key: ${{ runner.os }}-${{ matrix.triplet }}-${{ hashFiles('vcpkg.json') }}
72+
restore-keys: ${{ runner.os }}-${{ matrix.triplet }}-
7373

7474
- name: Get vcpkg(windows)
7575
if: ${{ runner.os == 'Windows' && steps.vcpkg-cache.outputs.cache-hit != 'true' }}

0 commit comments

Comments
 (0)