Skip to content

Commit 9d6c37b

Browse files
committed
ci: replace docker with android emulator runner action
1 parent 01c8059 commit 9d6c37b

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/ui-tests.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ jobs:
5858
path: |
5959
~/.android/avd/*
6060
~/.android/adb*
61-
key: avd-29
61+
key: avd-30-arm64
6262

6363
- name: Create AVD and generate snapshot for caching
6464
if: steps.avd-cache.outputs.cache-hit != 'true'
6565
uses: reactivecircus/android-emulator-runner@v2
6666
with:
67-
api-level: 29
68-
arch: x86_64
67+
api-level: 30
68+
arch: arm64-v8a
6969
profile: pixel_4
7070
force-avd-creation: false
7171
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
@@ -75,8 +75,8 @@ jobs:
7575
- name: Run UI tests on Android Emulator
7676
uses: reactivecircus/android-emulator-runner@v2
7777
with:
78-
api-level: 29
79-
arch: x86_64
78+
api-level: 30
79+
arch: arm64-v8a
8080
profile: pixel_4
8181
force-avd-creation: false
8282
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
@@ -88,11 +88,9 @@ jobs:
8888
adb shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done'
8989
sleep 10
9090
91-
# Verify emulator
92-
echo "Emulator properties:"
93-
adb shell getprop
94-
echo "APK info:"
95-
adb shell pm list packages
91+
# Verify emulator ABI matches app
92+
echo "Emulator ABI:"
93+
adb shell getprop ro.product.cpu.abi
9694
9795
# Install and run tests
9896
./gradlew installDebug

0 commit comments

Comments
 (0)