mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
gha: Use content of vcpkg response file to create cache key
This commit is contained in:
parent
5e63a1b716
commit
1a16362733
6
.github/workflows/ResInsightWithCache.yml
vendored
6
.github/workflows/ResInsightWithCache.yml
vendored
@ -130,12 +130,18 @@ jobs:
|
||||
- name: Print Python path
|
||||
run: echo ${{ steps.python-path.outputs.PYTHON_EXECUTABLE }}
|
||||
|
||||
- name: Set vcpkg's response file path used as part of cache's key.
|
||||
uses: lukka/set-shell-env@master
|
||||
with:
|
||||
VCPKGRESPONSEFILE: ${{ github.workspace }}/${{ matrix.config.vcpkg-response-file }}
|
||||
- name: Run vcpkg
|
||||
uses: lukka/run-vcpkg@v5
|
||||
id: runvcpkg
|
||||
with:
|
||||
vcpkgArguments: '@${{ github.workspace }}/${{ matrix.config.vcpkg-response-file }}'
|
||||
vcpkgDirectory: '${{ github.workspace }}/ThirdParty/vcpkg'
|
||||
# Ensure the cache key changes any time the content of the response file changes.
|
||||
appendedCacheKey: ${{ hashFiles(env.VCPKGRESPONSEFILE) }}
|
||||
|
||||
- name: Configure
|
||||
shell: cmake -P {0}
|
||||
|
Loading…
Reference in New Issue
Block a user