Skip to content

Commit

Permalink
cache keys per matrix combination
Browse files Browse the repository at this point in the history
  • Loading branch information
vasylenko committed Mar 31, 2024
1 parent 33f3754 commit 3f491ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-all-jdks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: /root/.m2 # Explicit path inside the container to overcome GitHub Actions bug https://github.com/actions/runner/issues/1876
key: project-${{ hashFiles('deps.edn') }}
key: ${{ matrix.docker-image }}-${{ matrix.clj-version }}-${{ hashFiles('deps.edn') }}

- name: Run Test
run: clojure -T:build test :clj '"${{ matrix.clj-version }}"'
Expand All @@ -31,4 +31,4 @@ jobs:
uses: actions/cache/save@v4
with:
path: /root/.m2
key: project-${{ hashFiles('deps.edn') }}
key: ${{ matrix.docker-image }}-${{ matrix.clj-version }}-${{ hashFiles('deps.edn') }}

0 comments on commit 3f491ce

Please sign in to comment.