Skip to content

Commit 6eb27d6

Browse files
authored
fix(ci): cache gradle plugins (#15175)
1 parent 5ab063f commit 6eb27d6

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/docker-unified.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,17 @@ jobs:
241241
restore-keys: |
242242
${{ needs.setup.outputs.yarn_cache_key_prefix }}
243243
244+
- uses: actions/cache/restore@v4
245+
with:
246+
path: |
247+
~/.gradle/wrapper
248+
~/.gradle/caches/modules-2
249+
~/.gradle/caches/jars-*
250+
~/.gradle/caches/transforms-*
251+
key: gradle-plugins-cache
252+
restore-keys: |
253+
gradle-plugins-cache
254+
244255
- name: Set up Depot CLI
245256
if: ${{ env.DOCKER_CACHE == 'DEPOT' }}
246257
uses: depot/setup-action@v1
@@ -314,6 +325,15 @@ jobs:
314325
path: |
315326
~/.cache/yarn
316327
key: ${{ needs.setup.outputs.yarn_cache_key }}
328+
- uses: actions/cache/save@v4
329+
if: ${{ github.ref == 'refs/heads/master' }}
330+
with:
331+
path: |
332+
~/.gradle/wrapper
333+
~/.gradle/caches/modules-2
334+
~/.gradle/caches/jars-*
335+
~/.gradle/caches/transforms-*
336+
key: gradle-plugins-cache
317337

318338
scan_images:
319339
permissions:

0 commit comments

Comments
 (0)