@@ -31,14 +31,11 @@ jobs:
31
31
- name : Checkout source tree
32
32
uses : actions/checkout@v3
33
33
- name : Cache Bazel artifacts
34
- uses : actions/cache@v3
34
+ uses : ./.github/ actions/cache-bazel
35
35
with :
36
- path : |
37
- ~/.cache/bazel-disk
38
- ~/.cache/bazel-repo
39
- key : ${{ runner.os }}-bazel-build-${{ hashFiles('**/BUILD.bazel') }}
40
- restore-keys : |
41
- ${{ runner.os }}-bazel-build-
36
+ workflow : bazel
37
+ key : build
38
+ gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
42
39
- name : Setup Java
43
40
uses : actions/setup-java@v3
44
41
with :
@@ -59,15 +56,11 @@ jobs:
59
56
with :
60
57
fetch-depth : 0
61
58
- name : Cache Bazel artifacts
62
- uses : actions/cache@v3
59
+ uses : ./.github/ actions/cache-bazel
63
60
with :
64
- path : |
65
- ~/.cache/bazel-disk
66
- ~/.cache/bazel-repo
67
- key : ${{ runner.os }}-bazel-small-tests-${{ hashFiles('**/BUILD.bazel') }}
68
- restore-keys : |
69
- ${{ runner.os }}-bazel-small-tests-
70
- ${{ runner.os }}-bazel-build-
61
+ workflow : bazel
62
+ key : small-tests
63
+ gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
71
64
- name : Setup Java
72
65
uses : actions/setup-java@v3
73
66
with :
@@ -93,15 +86,11 @@ jobs:
93
86
with :
94
87
fetch-depth : 0
95
88
- name : Cache Bazel artifacts
96
- uses : actions/cache@v3
89
+ uses : ./.github/ actions/cache-bazel
97
90
with :
98
- path : |
99
- ~/.cache/bazel-disk
100
- ~/.cache/bazel-repo
101
- key : ${{ runner.os }}-bazel-medium-tests-${{ hashFiles('**/BUILD.bazel') }}
102
- restore-keys : |
103
- ${{ runner.os }}-bazel-medium-tests-
104
- ${{ runner.os }}-bazel-build-
91
+ workflow : bazel
92
+ key : medium-tests
93
+ gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
105
94
- name : Setup Java
106
95
uses : actions/setup-java@v3
107
96
with :
@@ -121,15 +110,11 @@ jobs:
121
110
- name : Checkout source tree
122
111
uses : actions/checkout@v3
123
112
- name : Cache Bazel artifacts
124
- uses : actions/cache@v3
113
+ uses : ./.github/ actions/cache-bazel
125
114
with :
126
- path : |
127
- ~/.cache/bazel-disk
128
- ~/.cache/bazel-repo
129
- key : ${{ runner.os }}-bazel-lint-${{ hashFiles('**/BUILD.bazel') }}
130
- restore-keys : |
131
- ${{ runner.os }}-bazel-lint-
132
- ${{ runner.os }}-bazel-build-
115
+ workflow : bazel
116
+ key : lint
117
+ gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
133
118
- name : Setup Java
134
119
uses : actions/setup-java@v3
135
120
with :
@@ -156,15 +141,11 @@ jobs:
156
141
- name : Checkout source tree
157
142
uses : actions/checkout@v3
158
143
- name : Cache Bazel artifacts
159
- uses : actions/cache@v3
144
+ uses : ./.github/ actions/cache-bazel
160
145
with :
161
- path : |
162
- ~/.cache/bazel-disk
163
- ~/.cache/bazel-repo
164
- key : ${{ runner.os }}-bazel-${{ matrix.browser }}-tests-${{ hashFiles('**/BUILD.bazel') }}
165
- restore-keys : |
166
- ${{ runner.os }}-bazel-${{ matrix.browser }}-tests-
167
- ${{ runner.os }}-bazel-build-
146
+ workflow : bazel
147
+ key : ${{ matrix.browser }}-tests
148
+ gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
168
149
- name : Setup Fluxbox
169
150
run : sudo apt-get -y install fluxbox
170
151
- name : Setup Java
@@ -213,16 +194,11 @@ jobs:
213
194
- name : Checkout source tree
214
195
uses : actions/checkout@v3
215
196
- name : Cache Bazel artifacts
216
- uses : actions/cache@v3
197
+ uses : ./.github/ actions/cache-bazel
217
198
with :
218
- path : |
219
- ~/.cache/bazel-disk
220
- ~/.cache/bazel-repo
221
- key : ${{ runner.os }}-bazel-${{ matrix.browser }}-server-tests-${{ hashFiles('**/BUILD.bazel') }}
222
- restore-keys : |
223
- ${{ runner.os }}-bazel-${{ matrix.browser }}-server-tests-
224
- ${{ runner.os }}-bazel-${{ matrix.browser }}-tests-
225
- ${{ runner.os }}-bazel-build-
199
+ workflow : bazel
200
+ key : ${{ matrix.browser }}-server-tests
201
+ gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
226
202
- name : Setup Fluxbox
227
203
run : sudo apt-get -y install fluxbox
228
204
- name : Setup Java
@@ -263,15 +239,11 @@ jobs:
263
239
- name : Checkout source tree
264
240
uses : actions/checkout@v3
265
241
- name : Cache Bazel artifacts
266
- uses : actions/cache@v3
242
+ uses : ./.github/ actions/cache-bazel
267
243
with :
268
- path : |
269
- ~/.cache/bazel-disk
270
- ~/.cache/bazel-repo
271
- key : ${{ runner.os }}-bazel-firefox-tests-${{ hashFiles('**/BUILD.bazel') }}
272
- restore-keys : |
273
- ${{ runner.os }}-bazel-firefox-tests-
274
- ${{ runner.os }}-bazel-build-
244
+ workflow : bazel
245
+ key : firefox-tests
246
+ gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
275
247
- name : Setup Fluxbox
276
248
run : sudo apt-get -y install fluxbox
277
249
- name : Setup Java
@@ -306,15 +278,11 @@ jobs:
306
278
- name : Checkout source tree
307
279
uses : actions/checkout@v3
308
280
- name : Cache Bazel artifacts
309
- uses : actions/cache@v3
281
+ uses : ./.github/ actions/cache-bazel
310
282
with :
311
- path : |
312
- ~/.cache/bazel-disk
313
- ~/.cache/bazel-repo
314
- key : ${{ runner.os }}-bazel-firefox-tests-${{ hashFiles('**/BUILD.bazel') }}
315
- restore-keys : |
316
- ${{ runner.os }}-bazel-firefox-tests-
317
- ${{ runner.os }}-bazel-build-
283
+ workflow : bazel
284
+ key : firefox-tests
285
+ gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
318
286
- name : Setup Java
319
287
uses : actions/setup-java@v3
320
288
with :
0 commit comments