Skip to content

Commit 9e4beb1

Browse files
committed
Add back DEPENDENCIES_CACHE_VERSION
1 parent 87ba61b commit 9e4beb1

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/check.yml

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
on: push
22
name: Checks
33

4-
permissions:
5-
contents: read
6-
74
env:
5+
# Artificially refresh the cache
6+
DEPENDENCIES_CACHE_VERSION: 1
87
PLT_CACHE_VERSION: 1
98

9+
permissions:
10+
contents: read
11+
1012
jobs:
1113
ensure_code_consistency:
1214
runs-on: ubuntu-latest
@@ -31,9 +33,9 @@ jobs:
3133
cache-name: cache-elixir-deps
3234
with:
3335
path: deps
34-
key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }}
36+
key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}-${{ hashFiles('**/mix.lock') }}
3537
restore-keys: |
36-
${{ runner.os }}-mix-${{ env.cache-name }}-
38+
${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}
3739
3840
# Step: Define how to cache the `_build` directory. After the first run,
3941
# this speeds up tests runs a lot. This includes not re-compiling our
@@ -45,9 +47,9 @@ jobs:
4547
cache-name: cache-compiled-build
4648
with:
4749
path: _build
48-
key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }}
50+
key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}-${{ hashFiles('**/mix.lock') }}
4951
restore-keys: |
50-
${{ runner.os }}-mix-${{ env.cache-name }}-
52+
${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}
5153
${{ runner.os }}-mix-
5254
5355
# Step: Conditionally bust the cache when job is re-run. Sometimes, we
@@ -156,9 +158,9 @@ jobs:
156158
cache-name: cache-elixir-deps
157159
with:
158160
path: deps
159-
key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }}
161+
key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}-${{ hashFiles('**/mix.lock') }}
160162
restore-keys: |
161-
${{ runner.os }}-mix-${{ env.cache-name }}-
163+
${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}
162164
163165
# Step: Define how to cache the `_build` directory. After the first run,
164166
# this speeds up tests runs a lot. This includes not re-compiling our
@@ -170,9 +172,9 @@ jobs:
170172
cache-name: cache-compiled-build
171173
with:
172174
path: _build
173-
key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }}
175+
key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}-${{ hashFiles('**/mix.lock') }}
174176
restore-keys: |
175-
${{ runner.os }}-mix-${{ env.cache-name }}-
177+
${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}
176178
${{ runner.os }}-mix-
177179
178180
# Step: Conditionally bust the cache when job is re-run. Sometimes, we

0 commit comments

Comments
 (0)