diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 629f4c0cc..0235c4428 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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('**/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: |