Skip to content

Commit 4ea9664

Browse files
committed
Bust n_m cache
1 parent 86c5257 commit 4ea9664

File tree

1 file changed

+30
-54
lines changed

1 file changed

+30
-54
lines changed

.github/workflows/runtime_build_and_test.yml

Lines changed: 30 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
with:
4242
path: |
4343
**/node_modules
44-
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
44+
key: runtime-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
4545
lookup-only: true
4646
- uses: actions/setup-node@v4
4747
if: steps.node_modules.outputs.cache-hit != 'true'
@@ -55,10 +55,8 @@ jobs:
5555
with:
5656
path: |
5757
**/node_modules
58-
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
59-
restore-keys: |
60-
runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-
61-
runtime-node_modules-v6-
58+
key: runtime-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
59+
# Don't use restore-keys here. Otherwise the cache grows indefinitely.
6260
- run: yarn install --frozen-lockfile
6361
if: steps.node_modules.outputs.cache-hit != 'true'
6462
- name: Save cache
@@ -67,7 +65,7 @@ jobs:
6765
with:
6866
path: |
6967
**/node_modules
70-
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
68+
key: runtime-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
7169

7270
runtime_compiler_node_modules_cache:
7371
name: Cache Runtime, Compiler node_modules
@@ -82,7 +80,7 @@ jobs:
8280
with:
8381
path: |
8482
**/node_modules
85-
key: runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
83+
key: runtime-and-compiler-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
8684
lookup-only: true
8785
- uses: actions/setup-node@v4
8886
if: steps.node_modules.outputs.cache-hit != 'true'
@@ -98,10 +96,8 @@ jobs:
9896
with:
9997
path: |
10098
**/node_modules
101-
key: runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
102-
restore-keys: |
103-
runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-
104-
runtime-and-compiler-node_modules-v6-
99+
key: runtime-and-compiler-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
100+
# Don't use restore-keys here. Otherwise the cache grows indefinitely.
105101
- run: yarn install --frozen-lockfile
106102
if: steps.node_modules.outputs.cache-hit != 'true'
107103
- run: yarn --cwd compiler install --frozen-lockfile
@@ -112,7 +108,7 @@ jobs:
112108
with:
113109
path: |
114110
**/node_modules
115-
key: runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
111+
key: runtime-and-compiler-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
116112

117113
# ----- FLOW -----
118114
discover_flow_inline_configs:
@@ -154,10 +150,8 @@ jobs:
154150
with:
155151
path: |
156152
**/node_modules
157-
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
158-
restore-keys: |
159-
runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-
160-
runtime-node_modules-v6-
153+
key: runtime-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
154+
# Don't use restore-keys here. Otherwise the cache grows indefinitely.
161155
- name: Ensure clean build directory
162156
run: rm -rf build
163157
- run: yarn install --frozen-lockfile
@@ -184,10 +178,8 @@ jobs:
184178
with:
185179
path: |
186180
**/node_modules
187-
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
188-
restore-keys: |
189-
runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-
190-
runtime-node_modules-v6-
181+
key: runtime-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
182+
# Don't use restore-keys here. Otherwise the cache grows indefinitely.
191183
- name: Ensure clean build directory
192184
run: rm -rf build
193185
- run: yarn install --frozen-lockfile
@@ -216,7 +208,7 @@ jobs:
216208
with:
217209
path: |
218210
**/node_modules
219-
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
211+
key: runtime-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
220212
- name: Ensure clean build directory
221213
run: rm -rf build
222214
- run: yarn install --frozen-lockfile
@@ -274,10 +266,8 @@ jobs:
274266
with:
275267
path: |
276268
**/node_modules
277-
key: runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
278-
restore-keys: |
279-
runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-
280-
runtime-and-compiler-node_modules-v6-
269+
key: runtime-and-compiler-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
270+
# Don't use restore-keys here. Otherwise the cache grows indefinitely.
281271
- name: Ensure clean build directory
282272
run: rm -rf build
283273
- run: yarn install --frozen-lockfile
@@ -306,7 +296,7 @@ jobs:
306296
with:
307297
path: |
308298
**/node_modules
309-
key: runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
299+
key: runtime-and-compiler-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
310300
- name: Install runtime dependencies
311301
run: yarn install --frozen-lockfile
312302
if: steps.node_modules.outputs.cache-hit != 'true'
@@ -349,10 +339,8 @@ jobs:
349339
with:
350340
path: |
351341
**/node_modules
352-
key: runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
353-
restore-keys: |
354-
runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-
355-
runtime-and-compiler-node_modules-v6-
342+
key: runtime-and-compiler-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
343+
# Don't use restore-keys here. Otherwise the cache grows indefinitely.
356344
- name: Ensure clean build directory
357345
run: rm -rf build
358346
- run: yarn install --frozen-lockfile
@@ -440,10 +428,8 @@ jobs:
440428
with:
441429
path: |
442430
**/node_modules
443-
key: runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
444-
restore-keys: |
445-
runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-
446-
runtime-and-compiler-node_modules-v6-
431+
key: runtime-and-compiler-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
432+
# Don't use restore-keys here. Otherwise the cache grows indefinitely.
447433
- name: Ensure clean build directory
448434
run: rm -rf build
449435
- run: yarn install --frozen-lockfile
@@ -483,10 +469,8 @@ jobs:
483469
with:
484470
path: |
485471
**/node_modules
486-
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
487-
restore-keys: |
488-
runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-
489-
runtime-node_modules-v6-
472+
key: runtime-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
473+
# Don't use restore-keys here. Otherwise the cache grows indefinitely.
490474
- name: Ensure clean build directory
491475
run: rm -rf build
492476
- run: yarn install --frozen-lockfile
@@ -548,10 +532,8 @@ jobs:
548532
with:
549533
path: |
550534
**/node_modules
551-
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
552-
restore-keys: |
553-
runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-
554-
runtime-node_modules-v6-
535+
key: runtime-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
536+
# Don't use restore-keys here. Otherwise the cache grows indefinitely.
555537
- name: Ensure clean build directory
556538
run: rm -rf build
557539
- run: yarn install --frozen-lockfile
@@ -588,10 +570,8 @@ jobs:
588570
with:
589571
path: |
590572
**/node_modules
591-
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
592-
restore-keys: |
593-
runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-
594-
runtime-node_modules-v6-
573+
key: runtime-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
574+
# Don't use restore-keys here. Otherwise the cache grows indefinitely.
595575
- name: Ensure clean build directory
596576
run: rm -rf build
597577
- run: yarn install --frozen-lockfile
@@ -740,10 +720,8 @@ jobs:
740720
with:
741721
path: |
742722
**/node_modules
743-
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
744-
restore-keys: |
745-
runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-
746-
runtime-node_modules-v6-
723+
key: runtime-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
724+
# Don't use restore-keys here. Otherwise the cache grows indefinitely.
747725
- name: Ensure clean build directory
748726
run: rm -rf build
749727
- run: yarn install --frozen-lockfile
@@ -802,10 +780,8 @@ jobs:
802780
with:
803781
path: |
804782
**/node_modules
805-
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
806-
restore-keys: |
807-
runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-
808-
runtime-node_modules-v6-
783+
key: runtime-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
784+
# Don't use restore-keys here. Otherwise the cache grows indefinitely.
809785
- name: Ensure clean build directory
810786
run: rm -rf build
811787
- run: yarn install --frozen-lockfile

0 commit comments

Comments
 (0)