From a4b41213e7d35a04135b4c644e54d5b83873def1 Mon Sep 17 00:00:00 2001 From: Mahmudul Hasan Shohag Date: Sat, 21 Dec 2024 01:34:58 +0600 Subject: [PATCH] refactor: add gradle parameter required for gradle managed device --- .github/workflows/build-beta-upload-android.yml | 6 ++++++ .github/workflows/build-production-upload-android.yml | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/.github/workflows/build-beta-upload-android.yml b/.github/workflows/build-beta-upload-android.yml index 1fc641b..491b653 100644 --- a/.github/workflows/build-beta-upload-android.yml +++ b/.github/workflows/build-beta-upload-android.yml @@ -52,6 +52,12 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew + - name: Setup GMD + run: ./gradlew :benchmarks:pixel6Api35Setup + --info + -Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true + -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" + - name: Generate baseline profile run: ./gradlew :app:generateBaselineProfile -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" diff --git a/.github/workflows/build-production-upload-android.yml b/.github/workflows/build-production-upload-android.yml index cb121f7..3c308a6 100644 --- a/.github/workflows/build-production-upload-android.yml +++ b/.github/workflows/build-production-upload-android.yml @@ -49,8 +49,19 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew + - name: Setup GMD + run: ./gradlew :benchmarks:pixel6Api35Setup + --info + -Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true + -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" + - name: Generate baseline profile run: ./gradlew :app:generateBaselineProfile + -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 + -Pandroid.experimental.testOptions.managedDevices.setupTimeoutMinutes=5 - name: Build & deploy Android release run: bundle exec fastlane android deploy