@@ -31,11 +31,14 @@ jobs:
3131 - name : Checkout source tree
3232 uses : actions/checkout@v3
3333 - name : Cache Bazel artifacts
34- uses : ./.github/ actions/cache-bazel
34+ uses : actions/cache@v3
3535 with :
36- workflow : bazel
37- key : build
38- gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
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-
3942 - name : Setup Java
4043 uses : actions/setup-java@v3
4144 with :
@@ -56,11 +59,15 @@ jobs:
5659 with :
5760 fetch-depth : 0
5861 - name : Cache Bazel artifacts
59- uses : ./.github/ actions/cache-bazel
62+ uses : actions/cache@v3
6063 with :
61- workflow : bazel
62- key : small-tests
63- gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
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-
6471 - name : Setup Java
6572 uses : actions/setup-java@v3
6673 with :
@@ -86,11 +93,15 @@ jobs:
8693 with :
8794 fetch-depth : 0
8895 - name : Cache Bazel artifacts
89- uses : ./.github/ actions/cache-bazel
96+ uses : actions/cache@v3
9097 with :
91- workflow : bazel
92- key : medium-tests
93- gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
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-
94105 - name : Setup Java
95106 uses : actions/setup-java@v3
96107 with :
@@ -110,11 +121,15 @@ jobs:
110121 - name : Checkout source tree
111122 uses : actions/checkout@v3
112123 - name : Cache Bazel artifacts
113- uses : ./.github/ actions/cache-bazel
124+ uses : actions/cache@v3
114125 with :
115- workflow : bazel
116- key : lint
117- gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
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-
118133 - name : Setup Java
119134 uses : actions/setup-java@v3
120135 with :
@@ -141,11 +156,15 @@ jobs:
141156 - name : Checkout source tree
142157 uses : actions/checkout@v3
143158 - name : Cache Bazel artifacts
144- uses : ./.github/ actions/cache-bazel
159+ uses : actions/cache@v3
145160 with :
146- workflow : bazel
147- key : ${{ matrix.browser }}-tests
148- gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
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-
149168 - name : Setup Fluxbox
150169 run : sudo apt-get -y install fluxbox
151170 - name : Setup Java
@@ -194,11 +213,16 @@ jobs:
194213 - name : Checkout source tree
195214 uses : actions/checkout@v3
196215 - name : Cache Bazel artifacts
197- uses : ./.github/ actions/cache-bazel
216+ uses : actions/cache@v3
198217 with :
199- workflow : bazel
200- key : ${{ matrix.browser }}-server-tests
201- gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
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-
202226 - name : Setup Fluxbox
203227 run : sudo apt-get -y install fluxbox
204228 - name : Setup Java
@@ -239,11 +263,15 @@ jobs:
239263 - name : Checkout source tree
240264 uses : actions/checkout@v3
241265 - name : Cache Bazel artifacts
242- uses : ./.github/ actions/cache-bazel
266+ uses : actions/cache@v3
243267 with :
244- workflow : bazel
245- key : firefox-tests
246- gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
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-
247275 - name : Setup Fluxbox
248276 run : sudo apt-get -y install fluxbox
249277 - name : Setup Java
@@ -278,11 +306,15 @@ jobs:
278306 - name : Checkout source tree
279307 uses : actions/checkout@v3
280308 - name : Cache Bazel artifacts
281- uses : ./.github/ actions/cache-bazel
309+ uses : actions/cache@v3
282310 with :
283- workflow : bazel
284- key : firefox-tests
285- gcs-key : ${{ secrets.GOOGLE_CLOUD_STORAGE_KEY }}
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-
286318 - name : Setup Java
287319 uses : actions/setup-java@v3
288320 with :
0 commit comments