Skip to content

Commit

Permalink
Merge pull request #162 from joeloewi7178/development
Browse files Browse the repository at this point in the history
mod: use emulator to generate baseline profile
  • Loading branch information
joeloewi7178 authored Dec 28, 2023
2 parents b3200f3 + e9fcf34 commit 6db141f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ jobs:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '17'

- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Install GMD image for baseline profile generation
run: yes | "$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager "system-images;android-34;aosp_atd;x86_64"

- name: Accept Android licenses
run: yes | "$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager --licenses || true

- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand All @@ -49,16 +52,13 @@ jobs:
fileDir: './'
encodedString: ${{ secrets.SIGNING_KEY }}

- name: Build release variant including baseline profile generation
run: ./gradlew :app:assembleRelease
-Dorg.gradle.workers.max=1
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
-Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true
-Pandroid.experimental.androidTest.numManagedDeviceShards=1
-Pandroid.experimental.testOptions.managedDevices.maxConcurrentDevices=1

- name: Build Release AAB
run: ./gradlew bundleRelease
- name: Generate baseline profile
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
target: aosp_atd
arch: x86_64
script: ./gradlew :app:bundleRelease

- name: Upload Android Release to Play Store
uses: r0adkll/upload-google-play@v1
Expand Down

0 comments on commit 6db141f

Please sign in to comment.