Skip to content

Commit b407c6f

Browse files
committed
CI: refresh toolchain matrix and scope cache keys per toolchain
1 parent 87cfde4 commit b407c6f

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ jobs:
7373
cache-name: cache-elixir-deps
7474
with:
7575
path: deps
76-
key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }}
76+
key: ${{ runner.os }}-otp${{ matrix.otp }}-elixir${{ matrix.elixir }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }}
7777
restore-keys: |
78-
${{ runner.os }}-mix-${{ env.cache-name }}-
78+
${{ runner.os }}-otp${{ matrix.otp }}-elixir${{ matrix.elixir }}-mix-${{ env.cache-name }}-
7979
8080
# Step: Define how to cache the `_build` directory. After the first run,
8181
# this speeds up tests runs a lot. This includes not re-compiling our
@@ -87,10 +87,9 @@ jobs:
8787
cache-name: cache-compiled-build
8888
with:
8989
path: _build
90-
key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }}
90+
key: ${{ runner.os }}-otp${{ matrix.otp }}-elixir${{ matrix.elixir }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }}
9191
restore-keys: |
92-
${{ runner.os }}-mix-${{ env.cache-name }}-
93-
${{ runner.os }}-mix-
92+
${{ runner.os }}-otp${{ matrix.otp }}-elixir${{ matrix.elixir }}-mix-${{ env.cache-name }}-
9493
9594
# Step: Update dependencies
9695
- name: Update Ubuntu dependencies

0 commit comments

Comments
 (0)