Skip to content

Commit 11c4cec

Browse files
committed
Switch to using Ubuntu for Android emulator tests.
1 parent 6cf170f commit 11c4cec

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,21 @@ jobs:
9090
briefcase-run-args: ' -d "iPhone SE (3rd generation)"'
9191

9292
- backend: android
93-
runs-on: macos-latest
93+
runs-on: "ubuntu-latest"
9494
briefcase-target: "android"
95-
briefcase-run-args: " -d '{\"avd\":\"beePhone\"}' --Xemulator=-no-window --Xemulator=-no-snapshot --Xemulator=-no-audio --Xemulator=-no-boot-anim --shutdown-on-exit"
96-
95+
briefcase-run-args: >
96+
--device '{"avd":"beePhone"}'
97+
--Xemulator=-no-window
98+
--Xemulator=-no-snapshot
99+
--Xemulator=-no-audio
100+
--Xemulator=-no-boot-anim
101+
--shutdown-on-exit
102+
pre-command: |
103+
# allow access to KVM to run the emulator
104+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' \
105+
| sudo tee /etc/udev/rules.d/99-kvm4all.rules
106+
sudo udevadm control --reload-rules
107+
sudo udevadm trigger --name-match=kvm
97108
exclude:
98109
# Binary packages aren't available for 3.11+ on Android yet
99110
- backend: "android"

0 commit comments

Comments
 (0)