Skip to content

Commit 182664b

Browse files
committed
Cache gradle and AVD
1 parent e17cb7d commit 182664b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/check.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,25 @@ jobs:
143143
- name: Build ferric-example for all architectures
144144
run: npm run build -- --android
145145
working-directory: packages/ferric-example
146+
147+
- name: Setup Java Gradle cache for android test app
148+
uses: actions/cache@v4
149+
with:
150+
path: |
151+
~/.gradle/caches
152+
~/.gradle/wrapper
153+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
154+
restore-keys: |
155+
${{ runner.os }}-gradle-
156+
- name: Setup Android Emulator cache
157+
uses: actions/cache@v4
158+
id: avd-cache
159+
with:
160+
path: |
161+
~/.android/avd/*
162+
~/.android/adb*
163+
key: avd-29
164+
146165
- name: Run tests (Android)
147166
timeout-minutes: 75
148167
uses: reactivecircus/android-emulator-runner@v2

0 commit comments

Comments
 (0)