Skip to content

Commit

Permalink
Fix text_cache with proper cache invocation
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Guyot <[email protected]>
  • Loading branch information
pguyot committed Aug 24, 2024
1 parent f528bc9 commit 9325202
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: $RUNNER_TEMP/test_cache.img
path: ${{ env.RUNNER_TEMP }}/test_cache.img
key: ${{ hashFiles('**/test-cache.yml') }}-${{ hashFiles('**/*.sh') }}

- uses: ./ # pguyot/arm-runner-action@HEAD
Expand All @@ -40,3 +40,14 @@ jobs:
base_image: file://$RUNNER_TEMP/test_cache.img
commands: |
/usr/games/fortune /usr/share/games/fortunes/fortunes | /usr/games/cowsay
check_cache:
runs-on: ubuntu-latest
needs: [test_cache]
steps:
- uses: actions/cache@v4
id: cache
with:
path: ${{ env.RUNNER_TEMP }}/test_cache.img
key: ${{ hashFiles('**/test-cache.yml') }}-${{ hashFiles('**/*.sh') }}
fail-on-cache-miss: true

0 comments on commit 9325202

Please sign in to comment.