Create generate-baseline-profile.yml (#926)

This commit is contained in:
Yogesh Choudhary Paliyal
2024-07-28 18:18:55 +05:30
committed by GitHub
parent 1a67f95724
commit 2816053e0f

View File

@@ -0,0 +1,31 @@
name: Create APK from Master
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setting up project
uses: ./.github/actions/setup
- 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: Generate profile
run: ./gradlew :app:generateProReleaseBaselineProfile
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
# Upload the entire generated folder and attach it to the CI run
- name: Attach baseline profile
uses: actions/upload-artifact@v3
with:
name: Baseline profile output
path: benchmark/build/outputs/baseline-prof