Skip to content

Commit

Permalink
hash only environment dir and Makefile in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
JumiDeluxe committed Nov 13, 2023
1 parent 889d8fa commit 9801315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
with:
path: test/external/riscv-tests/test-*
key: ${{ env.cache-name }}-${{ runner.os }}-${{
job.container.id }}-${{ hashFiles('**/test/external/riscv-tests') }}
job.container.id }}-${{ hashFiles('**/test/external/riscv-tests/{environment/**,Makefile}')' }}
restore-keys: |
${{ env.cache-name }}-${{ runner.os }}-${{ job.container.id }}-
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
with:
path: test/external/riscv-tests/test-*
key: ${{ env.cache-name }}-${{ runner.os }}-${{
needs.build-regression-tests.outputs.container_id }}-${{ hashFiles('**/test/external/riscv-tests') }}
needs.build-regression-tests.outputs.container_id }}-${{ hashFiles('**/test/external/riscv-tests/{environment/**,Makefile}') }}
fail-on-cache-miss: true

- name: Run tests
Expand Down

0 comments on commit 9801315

Please sign in to comment.