Skip to content

Commit

Permalink
Cache by OTP version
Browse files Browse the repository at this point in the history
  • Loading branch information
williamthome committed Aug 9, 2024
1 parent 055c80c commit 9ca9a4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ jobs:
with:
path: deps
key: |
${{runner.os}}-env-${{env.MIX_ENV}}-mix-${{env.CACHE_NAME}}-${{hashFiles('**/mix.lock')}}
${{runner.os}}-otp-${{matrix.otp-version}}-mix-${{env.CACHE_NAME}}-${{hashFiles('**/mix.lock')}}
restore-keys: |
${{runner.os}}-env-${{env.MIX_ENV}}-mix-${{env.CACHE_NAME}}-
${{runner.os}}-otp-${{matrix.otp-version}}-mix-${{env.CACHE_NAME}}-
# Step: Define how to cache the `_build` directory. After the first run,
# this speeds up tests runs a lot. This includes not re-compiling our
Expand All @@ -82,9 +82,9 @@ jobs:
with:
path: _build
key: |
${{runner.os}}-env-${{env.MIX_ENV}}-mix-${{env.CACHE_NAME}}-${{hashFiles('**/mix.lock')}}
${{runner.os}}-otp-${{matrix.otp-version}}-mix-${{env.CACHE_NAME}}-${{hashFiles('**/mix.lock')}}
restore-keys: |
${{runner.os}}-env-${{env.MIX_ENV}}-mix-${{env.CACHE_NAME}}-
${{runner.os}}-otp-${{matrix.otp-version}}-mix-${{env.CACHE_NAME}}-
# Step: Download project dependencies. If unchanged, uses the cached version.
- name: Install dependencies
Expand Down

0 comments on commit 9ca9a4f

Please sign in to comment.