mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-12 10:30:08 +01:00
ci: Update vcpkg cache on MSBuild update
This commit is contained in:
parent
b6fa752bc7
commit
0b5a366bd7
1 changed files with 7 additions and 3 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -19,11 +19,17 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: '3.7' # Needed for PEP 540
|
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
|
- uses: actions/cache@v1
|
||||||
id: vcpkgcache
|
id: vcpkgcache
|
||||||
with:
|
with:
|
||||||
path: C:/vcpkg/installed
|
path: C:/vcpkg/installed
|
||||||
key: ${{ runner.os }}-vcpkg
|
key: ${{ runner.os }}-vcpkg-${{ hashFiles('MSBuild_version') }}
|
||||||
|
|
||||||
- name: Update vcpkg and install packages
|
- name: Update vcpkg and install packages
|
||||||
if: steps.vcpkgcache.outputs.cache-hit != 'true'
|
if: steps.vcpkgcache.outputs.cache-hit != 'true'
|
||||||
|
@ -54,8 +60,6 @@ jobs:
|
||||||
}
|
}
|
||||||
- name: Generate project files
|
- name: Generate project files
|
||||||
run: python build_msvc\msvc-autogen.py
|
run: python build_msvc\msvc-autogen.py
|
||||||
- name: Setup MSBuild.exe
|
|
||||||
uses: warrenbuckley/Setup-MSBuild@v1
|
|
||||||
- name: vcpkg integration
|
- name: vcpkg integration
|
||||||
run: C:/vcpkg/vcpkg.exe integrate install
|
run: C:/vcpkg/vcpkg.exe integrate install
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
Loading…
Add table
Reference in a new issue