Skip to content

Commit 681537e

Browse files
committed
ci: fixed vcpkg binary assets cache updating
1 parent 64d2a04 commit 681537e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ jobs:
9999
!${{ env.VCPKG_ROOT }}/downloads
100100
!${{ env.VCPKG_ROOT }}/installed
101101
# The key is composed in a way that it gets properly invalidated whenever a different version of vcpkg is being used.
102-
key: |
103-
vcpkg-${{ hashFiles('.git/modules/external/vcpkg/HEAD') }}-${{ runner.os }}
102+
key: vcpkg-${{ hashFiles('.git/modules/external/vcpkg/HEAD') }}-${{ runner.os }}-${{ github.run_id }}
103+
restore-keys: vcpkg-${{ hashFiles('.git/modules/external/vcpkg/HEAD') }}-${{ runner.os }}
104104

105105
- name: Configure CMake
106106
working-directory: ${{ github.workspace }}/build

.github/workflows/nightly-builds.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ jobs:
9090
!${{ env.VCPKG_ROOT }}/downloads
9191
!${{ env.VCPKG_ROOT }}/installed
9292
# The key is composed in a way that it gets properly invalidated whenever a different version of vcpkg is being used.
93-
key: |
94-
vcpkg-${{ hashFiles('.git/modules/external/vcpkg/HEAD') }}-${{ runner.os }}
93+
key: vcpkg-${{ hashFiles('.git/modules/external/vcpkg/HEAD') }}-${{ runner.os }}-${{ github.run_id }}-${{ job.container.id }}
94+
restore-keys: vcpkg-${{ hashFiles('.git/modules/external/vcpkg/HEAD') }}-${{ runner.os }}
9595

9696
- name: Configure CMake
9797
working-directory: ${{ github.workspace }}/build

0 commit comments

Comments
 (0)