Update roborazzi to v1.20.0 #938
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: "Update Baseline Profiles" | |
on: | |
workflow_dispatch: | |
# Always run on PRs if this file was modified | |
pull_request: | |
paths: | |
- '.github/workflows/update-baseline-profiles.yml' | |
- 'gradle/libs.versions.toml' | |
concurrency: | |
group: 'ci-${{ github.event.merge_group.head_ref || github.head_ref }}-${{ github.workflow }}' | |
cancel-in-progress: true | |
jobs: | |
update-baseline-profiles: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
lfs: 'true' | |
- name: Install JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
- name: Enable KVM group perms | |
run: | | |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
sudo udevadm control --reload-rules | |
sudo udevadm trigger --name-match=kvm | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Update SDK | |
run: | | |
echo "Accepting SDK licenses" | |
yes | "${ANDROID_HOME}"/cmdline-tools/latest/bin/sdkmanager --licenses || true | |
echo "Installing emulator image" | |
"${ANDROID_HOME}"/cmdline-tools/latest/bin/sdkmanager --install "system-images;android-33;google_apis;x86_64" | |
- name: Generate baseline profiles | |
run: ./scripts/update-baseline-profiles.sh | |
- name: Upload build reports | |
uses: actions/upload-artifact@v4 | |
with: | |
name: reports | |
path: | | |
**/build/reports/** | |
**/generated/baselineProfiles/** | |
- name: Create Pull Request | |
if: github.event_name == 'workflow_dispatch' | |
id: createpr | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.SLACKHQ_MBR_GITHUB_TOKEN }} | |
commit-message: 'Update baseline profiles' | |
committer: OSS-Bot <svc-oss-bot@slack-corp.com> | |
author: OSS-Bot <svc-oss-bot@slack-corp.com> | |
title: 'Update baseline profiles' | |
body: 'Updates baseline profiles' | |
reviewers: ${{ github.actor }} | |
branch-suffix: timestamp | |
branch: bot/update-baseline-profiles |