Skip to content

Commit 687cf95

Browse files
committed
Use emulator cache
1 parent b825d1e commit 687cf95

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/test.yml

+21
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,27 @@ jobs:
3636
with:
3737
python-version: '3.13'
3838

39+
- name: AVD cache
40+
uses: actions/cache@v4
41+
id: avd-cache
42+
with:
43+
path: |
44+
~/.android/avd/*
45+
~/.android/adb*
46+
key: avd-${{ matrix.api-level }}
47+
48+
- name: create AVD and generate snapshot for caching
49+
if: steps.avd-cache.outputs.cache-hit != 'true'
50+
uses: reactivecircus/android-emulator-runner@v2
51+
with:
52+
api-level: ${{ matrix.api-level }}
53+
arch: ${{ matrix.arch }}
54+
target: ${{ matrix.target }}
55+
force-avd-creation: false
56+
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
57+
disable-animations: false
58+
script: echo "Generated AVD snapshot for caching."
59+
3960
- name: run tests
4061
uses: reactivecircus/android-emulator-runner@v2
4162
with:

0 commit comments

Comments
 (0)