You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* build: improve AVD startup time
* build: bump versions
* build: use built-in system image
* build: use linux runner
* build: enable KVM
* build: use active-arch-only
* build: use google repository by default
Copy file name to clipboardExpand all lines: .github/workflows/android.yml
+33-12Lines changed: 33 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ on:
14
14
15
15
jobs:
16
16
android-build:
17
-
runs-on: macos-13 # emulator never starts on macOS 14 https://github.com/ReactiveCircus/android-emulator-runner/issues/392#issuecomment-2106167725
17
+
runs-on: ubuntu-latest
18
18
concurrency:
19
19
group: ${{ github.ref }}-android
20
20
cancel-in-progress: true
@@ -41,26 +41,47 @@ jobs:
41
41
run: bun run build:android
42
42
working-directory: example
43
43
44
+
- name: AVD cache
45
+
uses: actions/cache@v4
46
+
id: avd-cache
47
+
with:
48
+
path: |
49
+
~/.android/avd/*
50
+
~/.android/adb*
51
+
key: avd-35-arm64-x86_64
52
+
53
+
- name: Enable KVM group perms
54
+
run: |
55
+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
56
+
sudo udevadm control --reload-rules
57
+
sudo udevadm trigger --name-match=kvm
58
+
ls /dev/kvm
59
+
44
60
- name: Create AVD and generate snapshot for caching
0 commit comments