Skip to content

Commit 22780e7

Browse files
committed
fix(ci): stabilize emulator boot in release smoke test
1 parent 9792dc9 commit 22780e7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,24 @@ jobs:
109109
"$APKSIGNER" verify --print-certs app/build/outputs/apk/release/phoneclaw.apk | tee /tmp/apk-signing.txt
110110
grep -q "Signer #1 certificate DN:" /tmp/apk-signing.txt
111111
112+
- name: Enable KVM
113+
run: |
114+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
115+
sudo udevadm control --reload-rules
116+
sudo udevadm trigger --name-match=kvm
117+
112118
- name: Smoke test install/launch on emulator
113119
uses: reactivecircus/android-emulator-runner@v2
114120
with:
115121
api-level: 35
116122
target: google_apis
117123
arch: x86_64
118124
profile: pixel_7
125+
emulator-boot-timeout: 900
119126
heap-size: 512M
120127
ram-size: 4096M
121128
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim
129+
disable-linux-hw-accel: false
122130
disable-animations: true
123131
script: |
124132
adb install -r app/build/outputs/apk/release/phoneclaw.apk

0 commit comments

Comments
 (0)