Skip to content

Commit 0b5a366

Browse files
committed
ci: Update vcpkg cache on MSBuild update
1 parent b6fa752 commit 0b5a366

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ jobs:
1919
with:
2020
python-version: '3.7' # Needed for PEP 540
2121

22+
- name: Setup MSBuild.exe
23+
uses: warrenbuckley/Setup-MSBuild@v1
24+
25+
- name: Check MSBuild.exe
26+
run: MSBuild.exe -version | Out-File -FilePath $env:GITHUB_WORKSPACE\MSBuild_version
27+
2228
- uses: actions/cache@v1
2329
id: vcpkgcache
2430
with:
2531
path: C:/vcpkg/installed
26-
key: ${{ runner.os }}-vcpkg
32+
key: ${{ runner.os }}-vcpkg-${{ hashFiles('MSBuild_version') }}
2733

2834
- name: Update vcpkg and install packages
2935
if: steps.vcpkgcache.outputs.cache-hit != 'true'
@@ -54,8 +60,6 @@ jobs:
5460
}
5561
- name: Generate project files
5662
run: python build_msvc\msvc-autogen.py
57-
- name: Setup MSBuild.exe
58-
uses: warrenbuckley/Setup-MSBuild@v1
5963
- name: vcpkg integration
6064
run: C:/vcpkg/vcpkg.exe integrate install
6165
- name: Build

0 commit comments

Comments
 (0)