Skip to content

Commit 7fcfe56

Browse files
committed
ci: keep Elixir/OTP versions in every deps cache key
The 1.19/OTP 26 matrix entry and the coverage job share no prefix: each restores only caches built by the same toolchain, so cover can always re-instrument the beams.
1 parent 6be0e63 commit 7fcfe56

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
path: |
3333
deps
3434
_build
35-
key: ${{ runner.os }}-mix-1.20-27-${{ hashFiles('**/mix.lock') }}
36-
restore-keys: ${{ runner.os }}-mix-
35+
key: ${{ runner.os }}-mix-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('**/mix.lock') }}
36+
restore-keys: ${{ runner.os }}-mix-${{ matrix.elixir }}-${{ matrix.otp }}-
3737

3838
- uses: actions/cache@v4
3939
with:
@@ -65,7 +65,7 @@ jobs:
6565
deps
6666
_build
6767
key: ${{ runner.os }}-mix-1.20-27-${{ hashFiles('**/mix.lock') }}
68-
restore-keys: ${{ runner.os }}-mix-
68+
restore-keys: ${{ runner.os }}-mix-1.20-27-
6969

7070
- name: Fetch dependencies
7171
run: mix deps.get

0 commit comments

Comments
 (0)