Skip to content

Commit 5efd430

Browse files
committed
chore: combine cache keys in CI
1 parent b2f11f8 commit 5efd430

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/elixir.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,11 @@ jobs:
2424
- uses: actions/cache@v1
2525
id: cache-deps
2626
with:
27-
path: deps
28-
key: ${{matrix.otp}}-${{matrix.elixir}}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
29-
restore-keys: ${{matrix.otp}}-${{matrix.elixir}}-mix-
30-
- uses: actions/cache@v1
31-
id: cache-build
32-
with:
33-
path: _build
34-
# We may need to include elixir/OTP version in this cache key
35-
key: ${{matrix.otp}}-${{matrix.elixir}}-build-${{ hashFiles('mix.lock') }}
36-
restore-keys: |
37-
${{matrix.otp}}-${{matrix.elixir}}-build-
27+
path: |
28+
deps
29+
_build
30+
key: ${{matrix.otp}}-${{matrix.elixir}}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
31+
restore-keys: ${{matrix.otp}}-${{matrix.elixir}}-
3832
- run: mix deps.get
3933
- run: |
4034
mix compile --warnings-as-errors

0 commit comments

Comments
 (0)