Use runner image version in cache key
It turns out the runner image is often updated with new compiler versions which invalidates our cache.
This commit is contained in:
parent
8297edb123
commit
14b6813e9f
1 changed files with 2 additions and 1 deletions
3
.github/workflows/ci-main.yml
vendored
3
.github/workflows/ci-main.yml
vendored
|
@ -280,7 +280,8 @@ jobs:
|
|||
with:
|
||||
path: vcpkg_installed # vcpkg generates this dir next to vcpkg.json
|
||||
# the final key part needs to be changed if anything in the build process changes that is not already included here
|
||||
key: win-cache-master-${{ matrix.cfg }}-${{ env.VCPKG_COMMIT }}-${{ hashFiles('vcpkg.json') }}-0001
|
||||
# env.ImageVersion is the version of the runner image (https://github.com/actions/runner-images/releases)
|
||||
key: win-cache-master-${{ matrix.cfg }}-${{ env.ImageVersion }}-${{ hashFiles('vcpkg.json') }}-0001
|
||||
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/setup-msbuild@v1.1.3
|
||||
|
|
Loading…
Add table
Reference in a new issue