mirror of
https://github.com/yogeshpaliyal/KeyPass.git
synced 2026-01-05 16:36:31 -06:00
Create generate-baseline-profile.yml (#926)
This commit is contained in:
committed by
GitHub
parent
1a67f95724
commit
2816053e0f
31
.github/workflows/generate-baseline-profile.yml
vendored
Normal file
31
.github/workflows/generate-baseline-profile.yml
vendored
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user