Skip to content

Commit

Permalink
ci: Update vcpkg cache on MSBuild update
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Dec 23, 2019
1 parent b6fa752 commit 0b5a366
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ jobs:
with:
python-version: '3.7' # Needed for PEP 540

- name: Setup MSBuild.exe
uses: warrenbuckley/Setup-MSBuild@v1

- name: Check MSBuild.exe
run: MSBuild.exe -version | Out-File -FilePath $env:GITHUB_WORKSPACE\MSBuild_version

- uses: actions/cache@v1
id: vcpkgcache
with:
path: C:/vcpkg/installed
key: ${{ runner.os }}-vcpkg
key: ${{ runner.os }}-vcpkg-${{ hashFiles('MSBuild_version') }}

- name: Update vcpkg and install packages
if: steps.vcpkgcache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -54,8 +60,6 @@ jobs:
}
- name: Generate project files
run: python build_msvc\msvc-autogen.py
- name: Setup MSBuild.exe
uses: warrenbuckley/Setup-MSBuild@v1
- name: vcpkg integration
run: C:/vcpkg/vcpkg.exe integrate install
- name: Build
Expand Down

0 comments on commit 0b5a366

Please sign in to comment.