From 9801315896c6e3a8b044b0ee2d895864a68a904f Mon Sep 17 00:00:00 2001 From: JumiDeluxe Date: Mon, 13 Nov 2023 10:16:07 +0100 Subject: [PATCH] hash only environment dir and Makefile in cache --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d2ee69b22..78fb8b7e2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }}- @@ -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