Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor GitHub Action for Emulator Runner Job Redundancy #3616

Merged
merged 4 commits into from
Dec 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 3 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- develop
pull_request:

jobs:
Expand Down Expand Up @@ -42,34 +41,18 @@ jobs:
uses: ReactiveCircus/android-emulator-runner@v2
env:
GRADLE_OPTS: "-Dorg.gradle.internal.http.connectionTimeout=60000 -Dorg.gradle.internal.http.socketTimeout=60000 -Dorg.gradle.internal.network.retry.max.attempts=6 -Dorg.gradle.internal.network.retry.initial.backOff=2000"
if: ${{ matrix.api-level != 33 }}
with:
api-level: ${{ matrix.api-level }}
target: default
target: ${{ matrix.api-level != 33 && 'default' || 'google_apis' }}
arch: x86_64
profile: pixel_2
ram-size: '4096M'
disk-size: '14G'
sdcard-path-or-size: '1000M'
sdcard-path-or-size: ${{ matrix.api-level != 33 && '1000M' || '4096M' }}
disable-animations: false
heap-size: ${{ matrix.api-level == 33 && '512M' || '' }}
script: bash contrib/instrumentation.sh

- name: create instrumentation coverage on google_apis for android 33
uses: ReactiveCircus/android-emulator-runner@v2
env:
GRADLE_OPTS: "-Dorg.gradle.internal.http.connectionTimeout=60000 -Dorg.gradle.internal.http.socketTimeout=60000 -Dorg.gradle.internal.network.retry.max.attempts=6 -Dorg.gradle.internal.network.retry.initial.backOff=2000"
if: ${{ matrix.api-level == 33 }}
with:
api-level: ${{ matrix.api-level }}
target: google_apis
arch: x86_64
profile: pixel_2
heap-size: '512M'
ram-size: '4096M'
disk-size: '14G'
sdcard-path-or-size: '4096M'
disable-animations: false
script: bash contrib/instrumentation.sh

- name: Upload screenshot result
uses: actions/upload-artifact@v3
Expand Down