Update build cache action

This commit is contained in:
Magne Sjaastad 2020-05-08 09:38:44 +02:00
parent 610de357c1
commit c2c11e74b1

View File

@ -1,4 +1,4 @@
name: ResInsight Build
name: ResInsight Build With Cache
on: [push]
@ -74,9 +74,10 @@ jobs:
with:
path: ${{ env.BUILDCACHE_DIR }}
key: ${{ matrix.config.name }}-cache-${{ steps.cache_timestamp_string.outputs.timestamp }}
restore-keys: ${{ matrix.config.name }}-cache-
- name: Create Folder for buildcache
if: steps.cache-buildcache.outputs.cache-hit != 'true'
run: mkdir ${{ env.BUILDCACHE_DIR }}
run: New-Item ${{ env.BUILDCACHE_DIR }} -ItemType "directory" -Force
shell: pwsh
- name: Add buildcache to system path
run: echo "::add-path::${{ github.workspace }}/bin"