diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/android-app.yml | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/.github/workflows/android-app.yml b/.github/workflows/android-app.yml index 6414d0776e..a2d58f1246 100644 --- a/.github/workflows/android-app.yml +++ b/.github/workflows/android-app.yml @@ -134,12 +134,36 @@ jobs: with: name: apks + - name: AVD cache + uses: actions/cache@v2 + id: avd-cache + with: + path: | + ~/.android/avd/* + ~/.android/adb* + key: emulator-api-29 + + - name: Create avd and generate snapshot + uses: reactivecircus/android-emulator-runner@v2 + if: steps.avd-cache.outputs.cache-hit != 'true' + with: + force-avd-creation: false + api-level: 29 + arch: x86_64 + emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none + disable-animations: true + profile: pixel + script: echo "Generated AVD snapshot for caching." + env: + API_LEVEL: 29 + - name: Run Android instrumented tests uses: reactivecircus/android-emulator-runner@v2 with: + force-avd-creation: false api-level: 29 arch: x86_64 - emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot-load -noaudio -no-boot-anim + emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none disable-animations: true profile: pixel script: ./ci/run-android-instrumented-tests.sh $(pwd) |
