Skip to content

Commit

Permalink
maybe this one will work
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Trocki committed Jan 17, 2025
1 parent 2a07b77 commit a4b2fe3
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,28 @@ jobs:
run: bun run build:android
working-directory: example

- name: Run Android Emulator and app
- name: Create AVD and generate snapshot for caching
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 31
script: |
bun example:android:release
bun test:e2e:android
# Use the slimmer aosp_atd images for working
# around "System UI isn't responding" ANR
# (Application Not Responding) error
#
# https://android-developers.googleblog.com/2021/10/whats-new-in-scalable-automated-testing.html#:~:text=Slimmer%20Emulator%20System%20Images
# https://github.com/ReactiveCircus/android-emulator-runner/issues/129
# https://github.com/upleveled/hotline-bling-codealong/pull/26#issuecomment-1094659722
target: aosp_atd
api-level: 30
arch: x86
ram-size: 4096M
channel: canary
profile: pixel
avd-name: Pixel_3a_API_30_AOSP
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
emulator-boot-timeout: 12000
disable-animations: false
script: echo "Generated AVD snapshot for caching"

- name: Upload report
if: always()
Expand Down

0 comments on commit a4b2fe3

Please sign in to comment.