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 <pguyot@kallisys.net>
  • Loading branch information
pguyot committed Aug 24, 2024
1 parent f528bc9 commit 45c7fc8
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .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: ${{ runner.temp }}/test_cache.img
key: ${{ hashFiles('**/test-cache.yml') }}-${{ hashFiles('**/*.sh') }}

- uses: ./ # pguyot/arm-runner-action@HEAD
Expand All @@ -33,10 +33,21 @@ jobs:
- name: Move and rename image with dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
mv ${{ steps.install_deps.outputs.image }} $RUNNER_TEMP/test_cache.img
mv ${{ steps.install_deps.outputs.image }} ${{ runner.temp }}/test_cache.img
- uses: ./ # pguyot/arm-runner-action@HEAD
with:
base_image: file://$RUNNER_TEMP/test_cache.img
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/checkout@v4
- uses: actions/cache@v4
with:
path: ${{ runner.temp }}/test_cache.img
key: ${{ hashFiles('**/test-cache.yml') }}-${{ hashFiles('**/*.sh') }}
fail-on-cache-miss: true

0 comments on commit 45c7fc8

Please sign in to comment.