-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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" | ||
|
@@ -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/[email protected] | ||
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" | ||
|
@@ -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 | ||
|