Skip to content

Commit

Permalink
ci: generate baseline-prof file.
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyroid committed Oct 22, 2024
1 parent ca92e34 commit 6af3406
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9,791 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Android CI

on:
push:
branches: [ "master" ]
branches: [ "master", "ci-1.14.0-rc04-benchmark" ]
paths-ignore:
- '**.md'
- '**.txt'
Expand All @@ -11,7 +11,7 @@ on:
- 'fastlane/**'
- '!.github/workflows/**'
pull_request:
branches: [ "master" ]
branches: [ "master", "ci-1.14.0-rc04-benchmark" ]
workflow_dispatch:

jobs:
Expand All @@ -30,6 +30,13 @@ jobs:

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Generate baseline profile
run: ./gradlew :benchmark:Pixel5Api31StableChannelRichCodecBenchmarkAndroidTest --rerun-tasks -P android.testInstrumentationRunnerArguments.class=com.m3u.benchmark.BaselineProfileGenerator

- name: Copy and Rename baseline profile
run: cp benchmark/build/outputs/managed_device_android_test_additional_output/benchmark/flavours/stableChannelRichCodec/Pixel5Api31/BaselineProfileGenerator_generateBaselineProfile-baseline-prof.txt androidApp/src/main/baseline-prof.txt

- name: Build with Gradle
run: ./gradlew :androidApp:assembleSnapshotChannelRichCodecRelease

Expand Down
Loading

0 comments on commit 6af3406

Please sign in to comment.