feat: remove legacy architecture support #378
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Android Build | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - '.github/workflows/android.yml' | |
| - 'android/**' | |
| - 'example/android/**' | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| android-build: | |
| runs-on: macos-13 # emulator never starts on macOS 14 https://github.com/ReactiveCircus/android-emulator-runner/issues/392#issuecomment-2106167725 | |
| concurrency: | |
| group: ${{ github.ref }}-android | |
| cancel-in-progress: true | |
| steps: | |
| - uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2 | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Install dependencies | |
| shell: bash | |
| run: bun install | |
| - name: Install example dependencies | |
| shell: bash | |
| run: bun install | |
| working-directory: example | |
| - uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '17' | |
| cache: 'gradle' | |
| - name: Bundle app | |
| run: bun run build:android | |
| working-directory: example | |
| - name: Create AVD and generate snapshot for caching | |
| uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed # v2.34.0 | |
| with: | |
| # 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: | | |
| bun example:android:release |