Add AVD cache feature.

pull/1819/head
Jaehwa Noh 8 months ago committed by GitHub
parent a0f2786634
commit 2eedc6dc45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -191,11 +191,36 @@ jobs:
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: AVD cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
avd-name: test-${{ matrix.api-level }}
force-avd-creation: false
arch: x86_64
disk-size: 6000M
heap-size: 600M
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
- name: Build projects and run instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
avd-name: test-${{ matrix.api-level }}
arch: x86_64
force-avd-creation: false
disable-animations: true
disk-size: 6000M
heap-size: 600M

Loading…
Cancel
Save