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 16fbe35
Showing 1 changed file with 30 additions and 27 deletions.
57 changes: 30 additions & 27 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 @@ -83,7 +86,7 @@ jobs:
strategy:
fail-fast: false
matrix:
api-level: [29]
api-level: [30]
target: [default]
steps:
- uses: actions/checkout@v3
Expand All @@ -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 All @@ -143,7 +146,7 @@ jobs:
strategy:
fail-fast: false
matrix:
api-level: [29]
api-level: [30]
target: [default]
steps:
- uses: actions/checkout@v3
Expand All @@ -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
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 -P testingMinimizedBuild=true -P android.enableR8.fullMode=false"
Expand All @@ -202,7 +205,7 @@ jobs:
strategy:
fail-fast: false
matrix:
api-level: [29]
api-level: [30]
target: [default]
steps:
- uses: actions/checkout@v3
Expand All @@ -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 16fbe35

Please sign in to comment.