Try to make cache key more accurate

This commit is contained in:
Gunter Labes 2023-09-13 17:29:15 +02:00 committed by GitHub
parent d449bad607
commit e0b130434a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -263,6 +263,7 @@ jobs:
env:
CFG: ${{ matrix.cfg }}
VCPKG_FEATURE_FLAGS: dependencygraph
VCPKG_COMMIT: 417119555f155f6044dec7a379cd25466e339873
permissions:
contents: write # for dependency graph
defaults:
@ -278,7 +279,8 @@ jobs:
uses: actions/cache@v3
with:
path: vcpkg_installed # vcpkg generates this dir next to vcpkg.json
key: win-cache-master-${{ matrix.cfg }}-0006
# 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
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1.3
@ -288,7 +290,7 @@ jobs:
- name: Build vcpkg
run: |
git clone https://github.com/microsoft/vcpkg
git -C vcpkg checkout 417119555f155f6044dec7a379cd25466e339873
git -C vcpkg checkout %VCPKG_COMMIT%
vcpkg/bootstrap-vcpkg.bat
- name: Setup cmake