Skip to content

Commit 24ef7cd

Browse files
committed
1. gradle/actions/setup-gradle@v4 — caches Gradle deps, build cache, and wrapper (replaces cache: 'gradle' on setup-java)
2. actions/cache@v4 for AVD — caches ~/.android/avd/* between runs so the ATD system image isn't re-downloaded First run populates caches. Subsequent runs skip the ~800MB system image download and AVD creation.
1 parent c0fe5ce commit 24ef7cd

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ jobs:
4949
with:
5050
distribution: "temurin"
5151
java-version: 17
52-
cache: "gradle"
52+
53+
- name: Setup Gradle
54+
uses: gradle/actions/setup-gradle@v4
5355

5456
- name: Build Java library JAR
5557
run: mvn package -Dmaven.test.skip=true
@@ -63,6 +65,14 @@ jobs:
6365
sudo udevadm control --reload-rules
6466
sudo udevadm trigger --name-match=kvm
6567
68+
- name: Cache AVD
69+
uses: actions/cache@v4
70+
with:
71+
path: |
72+
~/.android/avd/*
73+
~/.android/adb*
74+
key: avd-pixel2-api30-atd
75+
6676
- name: Run Android Tests
6777
working-directory: android-test
6878
run: >

0 commit comments

Comments
 (0)