@@ -31,14 +31,11 @@ jobs:
3131 - name : Checkout source tree
3232 uses : actions/checkout@v3
3333 - name : Cache Bazel artifacts
34- uses : actions/cache@v3
34+ uses : ./.github/ actions/cache-bazel
3535 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 }}
4239 - name : Setup Java
4340 uses : actions/setup-java@v3
4441 with :
@@ -59,15 +56,11 @@ jobs:
5956 with :
6057 fetch-depth : 0
6158 - name : Cache Bazel artifacts
62- uses : actions/cache@v3
59+ uses : ./.github/ actions/cache-bazel
6360 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 }}
7164 - name : Setup Java
7265 uses : actions/setup-java@v3
7366 with :
@@ -93,15 +86,11 @@ jobs:
9386 with :
9487 fetch-depth : 0
9588 - name : Cache Bazel artifacts
96- uses : actions/cache@v3
89+ uses : ./.github/ actions/cache-bazel
9790 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 }}
10594 - name : Setup Java
10695 uses : actions/setup-java@v3
10796 with :
@@ -121,15 +110,11 @@ jobs:
121110 - name : Checkout source tree
122111 uses : actions/checkout@v3
123112 - name : Cache Bazel artifacts
124- uses : actions/cache@v3
113+ uses : ./.github/ actions/cache-bazel
125114 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 }}
133118 - name : Setup Java
134119 uses : actions/setup-java@v3
135120 with :
@@ -156,15 +141,11 @@ jobs:
156141 - name : Checkout source tree
157142 uses : actions/checkout@v3
158143 - name : Cache Bazel artifacts
159- uses : actions/cache@v3
144+ uses : ./.github/ actions/cache-bazel
160145 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 }}
168149 - name : Setup Fluxbox
169150 run : sudo apt-get -y install fluxbox
170151 - name : Setup Java
@@ -213,16 +194,11 @@ jobs:
213194 - name : Checkout source tree
214195 uses : actions/checkout@v3
215196 - name : Cache Bazel artifacts
216- uses : actions/cache@v3
197+ uses : ./.github/ actions/cache-bazel
217198 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 }}
226202 - name : Setup Fluxbox
227203 run : sudo apt-get -y install fluxbox
228204 - name : Setup Java
@@ -263,15 +239,11 @@ jobs:
263239 - name : Checkout source tree
264240 uses : actions/checkout@v3
265241 - name : Cache Bazel artifacts
266- uses : actions/cache@v3
242+ uses : ./.github/ actions/cache-bazel
267243 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 }}
275247 - name : Setup Fluxbox
276248 run : sudo apt-get -y install fluxbox
277249 - name : Setup Java
@@ -306,15 +278,11 @@ jobs:
306278 - name : Checkout source tree
307279 uses : actions/checkout@v3
308280 - name : Cache Bazel artifacts
309- uses : actions/cache@v3
281+ uses : ./.github/ actions/cache-bazel
310282 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 }}
318286 - name : Setup Java
319287 uses : actions/setup-java@v3
320288 with :
0 commit comments