Skip to content

Commit

Permalink
mod: use connected device
Browse files Browse the repository at this point in the history
  • Loading branch information
LEE JI WOO committed Dec 28, 2023
1 parent 9df92b1 commit 8ff006e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/github-action-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ jobs:
fileDir: './'
encodedString: ${{ secrets.SIGNING_KEY }}

- name: Build release variant including baseline profile generation
run: ./gradlew :app:assembleRelease
-Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=BaselineProfile
-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: Generate baseline profile
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
target: aosp_atd
arch: x86_64
script: ./gradlew :app:assembleRelease

- name: Build Release AAB
run: ./gradlew bundleRelease
3 changes: 1 addition & 2 deletions baselineprofile/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ android {
// This is the configuration block for the Baseline Profile plugin.
// You can specify to run the generators on a managed devices or connected devices.
baselineProfile {
managedDevices += "pixel2Api34"
useConnectedDevices = false
useConnectedDevices = true
}

dependencies {
Expand Down

0 comments on commit 8ff006e

Please sign in to comment.