Skip to content

Commit

Permalink
Regression test cache name change and strictier restore keys
Browse files Browse the repository at this point in the history
  • Loading branch information
JumiDeluxe committed Oct 30, 2023
1 parent a24d3bf commit 8061367
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ jobs:
cache-name: cache-regression-tests
with:
path: test/external/riscv-tests/test-*
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{
hashFiles('**/riscv-tests/test-*') }}
key: ${{ env.cache-name }}-${{ runner.os }}-${{
job.container.id }}-${{ hashFiles('**/test/external/riscv-tests') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ env.cache-name }}-${{ runner.os }}-${{ job.container.id }}-
${{ env.cache-name }}-${{ runner.os }}-
- if: ${{ steps.cache-regression.outputs.cache-hit != 'true' }}
name: Build riscv-tests
Expand All @@ -49,6 +48,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -71,13 +72,13 @@ jobs:
env:
cache-name: cache-regression-tests
with:
submodules: recursive
path: test/external/riscv-tests/test-*
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{
hashFiles('**/riscv-tests/test-*') }}
key: ${{ env.cache-name }}-${{ runner.os }}-${{
job.container.id }}-${{ hashFiles('**/test/external/riscv-tests') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ env.cache-name }}-${{ runner.os }}-${{ job.container.id }}-
${{ env.cache-name }}-${{ runner.os }}-
- name: Run tests
run: |
Expand Down

0 comments on commit 8061367

Please sign in to comment.