Use aosp-atd #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Release with APKs | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-latest | |
timeout-minutes: 120 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
cache-read-only: true | |
- name: Install GMD image for baseline profile generation | |
run: yes | "$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager "system-images;android-33;aosp_atd;x86_64" | |
- name: Accept Android licenses | |
run: yes | "$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager --licenses || true | |
- name: Generate Baseline Profile | |
run: ./gradlew generateLawnWithQuickstepMarketReleaseBaselineProfile | |
- name: Commit baseline profile into main | |
#if: github.ref == 'refs/heads/main' | |
run: | | |
# Pull down any changes which may have been committed while this workflow has been running | |
git pull | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
git add android-app/app/src/main/baseline-prof.txt | |
git commit -m "Update app baseline profile" && git push | |
fi |