Try to make cache key more accurate
This commit is contained in:
parent
d449bad607
commit
e0b130434a
1 changed files with 4 additions and 2 deletions
6
.github/workflows/ci-main.yml
vendored
6
.github/workflows/ci-main.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue