Skip to content

Commit 56a35da

Browse files
troZeePiotr Trocki
and
Piotr Trocki
authored
fix(CI): android build(#962)
* fix: change to macos-14 * change arch * change arch to x86 * change emu params * Revert "change emu params" This reverts commit 5a5e570. * macos-15 * change arch * remove sdk manager * macos13 * api 29 * remove script * api 31 * maybe this one will work * revert e2e tests --------- Co-authored-by: Piotr Trocki <[email protected]>
1 parent 6978185 commit 56a35da

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/android.yml

+18-8
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414

1515
jobs:
1616
android-build:
17-
runs-on: macos-12
17+
runs-on: macos-13 # emulator never starts on macOS 14 https://github.com/ReactiveCircus/android-emulator-runner/issues/392#issuecomment-2106167725
1818
concurrency:
1919
group: ${{ github.ref }}-android
2020
cancel-in-progress: true
@@ -50,17 +50,27 @@ jobs:
5050
run: bun run build:android
5151
working-directory: example
5252

53-
- name: Run Android Emulator and app
53+
- name: Create AVD and generate snapshot for caching
5454
uses: reactivecircus/android-emulator-runner@v2
5555
with:
56-
api-level: 31
56+
# Use the slimmer aosp_atd images for working
57+
# around "System UI isn't responding" ANR
58+
# (Application Not Responding) error
59+
#
60+
# https://android-developers.googleblog.com/2021/10/whats-new-in-scalable-automated-testing.html#:~:text=Slimmer%20Emulator%20System%20Images
61+
# https://github.com/ReactiveCircus/android-emulator-runner/issues/129
62+
# https://github.com/upleveled/hotline-bling-codealong/pull/26#issuecomment-1094659722
5763
target: aosp_atd
58-
profile: pixel_2
59-
ram-size: '4096M'
60-
disk-size: '10G'
64+
api-level: 30
65+
arch: x86
66+
ram-size: 4096M
67+
channel: canary
68+
profile: pixel
69+
avd-name: Pixel_3a_API_30_AOSP
70+
force-avd-creation: false
71+
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
72+
emulator-boot-timeout: 12000
6173
disable-animations: false
62-
avd-name: e2e_emulator
63-
arch: x86_64
6474
script: |
6575
bun example:android:release
6676
bun test:e2e:android

0 commit comments

Comments
 (0)