Skip to content

Commit 743fb91

Browse files
committed
fix(workflow): hash vcpkg.json manifest in cache key
1 parent f54f040 commit 743fb91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
id: cache-vcpkg
2525
with:
2626
path: build/vcpkg_cache/
27-
key: vcpkg-binaries-x64-osx
27+
key: vcpkg-binaries-x64-osx-${{ hashFiles('vcpkg.json') }}
2828

2929
- name: Create Build Environment
3030
if: ${{ !steps.cache-vcpkg.outputs.cache-hit }}

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
id: cache-vcpkg
3030
with:
3131
path: build/vcpkg_cache/
32-
key: vcpkg-binaries-${{ steps.set-variables.outputs.vcpkg_triplet }}
32+
key: vcpkg-binaries-${{ steps.set-variables.outputs.vcpkg_triplet }}-${{ hashFiles('vcpkg.json') }}
3333

3434
- name: Create Build Environment
3535
if: ${{ !steps.cache-vcpkg.outputs.cache-hit }}

0 commit comments

Comments
 (0)