mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Update build cache action
This commit is contained in:
7
.github/workflows/ResInsightWithCache.yml
vendored
7
.github/workflows/ResInsightWithCache.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: ResInsight Build
|
name: ResInsight Build With Cache
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
@@ -74,9 +74,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ${{ env.BUILDCACHE_DIR }}
|
path: ${{ env.BUILDCACHE_DIR }}
|
||||||
key: ${{ matrix.config.name }}-cache-${{ steps.cache_timestamp_string.outputs.timestamp }}
|
key: ${{ matrix.config.name }}-cache-${{ steps.cache_timestamp_string.outputs.timestamp }}
|
||||||
|
restore-keys: ${{ matrix.config.name }}-cache-
|
||||||
- name: Create Folder for buildcache
|
- name: Create Folder for buildcache
|
||||||
if: steps.cache-buildcache.outputs.cache-hit != 'true'
|
run: New-Item ${{ env.BUILDCACHE_DIR }} -ItemType "directory" -Force
|
||||||
run: mkdir ${{ env.BUILDCACHE_DIR }}
|
shell: pwsh
|
||||||
- name: Add buildcache to system path
|
- name: Add buildcache to system path
|
||||||
run: echo "::add-path::${{ github.workspace }}/bin"
|
run: echo "::add-path::${{ github.workspace }}/bin"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user