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:
Gunter Labes 2023-09-15 23:50:44 +02:00 committed by GitHub
parent 8297edb123
commit 14b6813e9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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