Skip to content

Commit

Permalink
ci: migrate to arm64 emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
CAMOBAP committed May 17, 2024
1 parent 1b13fc2 commit 4be95c3
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:

env:
JAVA_VERSION: '17'
AVD_ARCH: arm64-v8a
AVD_OPTIONS: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
AVD_PROFILE: Nexus 6

jobs:
test:
Expand Down Expand Up @@ -104,26 +107,26 @@ jobs:
key: avd-api-${{ matrix.api-level }}-target-${{ matrix.target }}
- name: 'Create AVD'
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2.29.0
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
emulator-options: ${{ env.AVD_OPTIONS }}
force-avd-creation: false
disable-animations: false
arch: x86_64
profile: Nexus 6
arch: ${{ env.AVD_ARCH }}
profile: ${{ env.AVD_PROFILE }}
script: echo "Generated AVD snapshot for caching."
- name: 'Tests'
uses: reactivecircus/android-emulator-runner@v2.29.0
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
emulator-options: ${{ env.AVD_OPTIONS }}
force-avd-creation: false
disable-animations: true
arch: x86_64
profile: Nexus 6
arch: ${{ env.AVD_ARCH }}
profile: ${{ env.AVD_PROFILE }}
script: |
brew install parallel
parallel --retries 3 ::: "./gradlew test:connectedCheck"
Expand Down Expand Up @@ -164,26 +167,26 @@ jobs:
key: avd-api-${{ matrix.api-level }}-target-${{ matrix.target }}
- name: 'Create AVD'
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2.29.0
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
emulator-options: ${{ env.AVD_OPTIONS }}
force-avd-creation: false
disable-animations: false
arch: x86_64
profile: Nexus 6
arch: ${{ env.AVD_ARCH }}
profile: ${{ env.AVD_PROFILE }}
script: echo "Generated AVD snapshot for caching."
- name: 'Tests'
uses: reactivecircus/android-emulator-runner@v2.29.0
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
emulator-options: ${{ env.AVD_OPTIONS }}
force-avd-creation: false
disable-animations: true
arch: x86_64
profile: Nexus 6
arch: ${{ env.AVD_ARCH }}
profile: ${{ env.AVD_PROFILE }}
script: |
brew install parallel
parallel --retries 3 ::: "./gradlew test:connectedCheck -P testingMinimizedBuild=true -P android.enableR8.fullMode=false"
Expand Down Expand Up @@ -223,25 +226,25 @@ jobs:
key: avd-api-${{ matrix.api-level }}-target-${{ matrix.target }}
- name: 'Create AVD'
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2.29.0
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
emulator-options: ${{ env.AVD_OPTIONS }}
force-avd-creation: false
disable-animations: false
arch: x86_64
profile: Nexus 6
arch: ${{ env.AVD_ARCH }}
profile: ${{ env.AVD_PROFILE }}
script: echo "Generated AVD snapshot for caching."
- uses: reactivecircus/android-emulator-runner@v2.29.0
- uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
emulator-options: ${{ env.AVD_OPTIONS }}
force-avd-creation: false
disable-animations: true
arch: x86_64
profile: Nexus 6
arch: ${{ env.AVD_ARCH }}
profile: ${{ env.AVD_PROFILE }}
script: ./gradlew benchmark:connectedReleaseAndroidTest
- name: Diff benchmark result
id: diff-benchmark
Expand Down

0 comments on commit 4be95c3

Please sign in to comment.