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 0223c00
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,17 @@ jobs:
submodules: recursive

- name: Cache regression-tests
id: cache-regression
id: regression-tests
uses: actions/cache@v3
env:
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('**/riscv-tests/test-*') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ env.cache-name }}-${{ runner.os }}-${{
job.container.id }}
- if: ${{ steps.cache-regression.outputs.cache-hit != 'true' }}
name: Build riscv-tests
Expand Down Expand Up @@ -72,12 +71,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('**/riscv-tests/test-*') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ env.cache-name }}-${{ runner.os }}-${{
job.container.id }}
- name: Run tests
run: |
Expand Down

0 comments on commit 0223c00

Please sign in to comment.