From 10d8b4cf4f9369a6a2bc5a6e039ca5a3a3b55a2d Mon Sep 17 00:00:00 2001 From: JumiDeluxe Date: Mon, 13 Nov 2023 14:53:58 +0100 Subject: [PATCH] add ricsv-tests submodule commit hash to key --- .github/workflows/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 38690c4fa..27458da41 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,10 +32,12 @@ jobs: cache-name: cache-regression-tests with: path: test/external/riscv-tests/test-* + key: ${{ env.cache-name }}-${{ runner.os }}-${{ job.container.id }}-${{ hashFiles( '**/test/external/riscv-tests/environment/**', - '**/test/external/riscv-tests/Makefile}' + '**/test/external/riscv-tests/Makefile', + '**/.git/modules/test/external/riscv-tests/riscv-tests/HEAD' ) }} restore-keys: | ${{ env.cache-name }}-${{ runner.os }}-${{ job.container.id }}- @@ -86,8 +88,9 @@ jobs: key: ${{ env.cache-name }}-${{ runner.os }}-${{ needs.build-regression-tests.outputs.container_id }}-${{ hashFiles( '**/test/external/riscv-tests/environment/**', - '**/test/external/riscv-tests/Makefile}' - ) }} + '**/test/external/riscv-tests/Makefile', + '**/.git/modules/test/external/riscv-tests/riscv-tests/HEAD' + ) }} fail-on-cache-miss: true - name: Run tests