diff options
| author | Albin <albin@mullvad.net> | 2022-02-01 08:28:57 +0100 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2022-02-01 14:38:28 +0100 |
| commit | 821805ab019b9db6b1516239e7a7b7681093c41e (patch) | |
| tree | 5013a2f062bc99ea9dbf7c37ddba890ce854b6bf /.github | |
| parent | 3688065e68967bce5cdb92ae4bfdc7da48183fb7 (diff) | |
| download | mullvadvpn-821805ab019b9db6b1516239e7a7b7681093c41e.tar.xz mullvadvpn-821805ab019b9db6b1516239e7a7b7681093c41e.zip | |
Cache Android emulator
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) |
