Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/MacrobenchmarkSample…
Browse files Browse the repository at this point in the history
…/functions/multi-cff7468b61
  • Loading branch information
keyboardsurfer authored Oct 1, 2024
2 parents 5b766e8 + 0054980 commit 13131ca
Show file tree
Hide file tree
Showing 56 changed files with 1,119 additions and 493 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/firebase_test_lab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,34 @@ jobs:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'

- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2

- name: Install Cloud SDK Beta components
run: gcloud components install beta

- name: Run Macro Benchmarks
- name: Run Benchmarks
run: |
gcloud beta firebase test android run \
--type instrumentation \
--app ${{ github.workspace }}/MacrobenchmarkSample/app/build/outputs/apk/benchmark/app-benchmark.apk \
--test ${{ github.workspace }}/MacrobenchmarkSample/macrobenchmark/build/outputs/apk/benchmark/macrobenchmark-benchmark.apk \
--device model=redfin,version=30,locale=en,orientation=portrait \
--app ${{ github.workspace }}/MacrobenchmarkSample/app/build/outputs/apk/benchmarkRelease/app-benchmarkRelease.apk \
--test ${{ github.workspace }}/MacrobenchmarkSample/macrobenchmark/build/outputs/apk/benchmarkRelease/macrobenchmark-benchmarkRelease.apk \
--device model=lynx,version=33,locale=en,orientation=portrait \
--directories-to-pull /sdcard/Download \
--results-bucket gs://macrobenchmark-results \
--environment-variables clearPackageData=true,additionalTestOutputDir=/sdcard/Download,no-isolated-storage=true,androidx.benchmark.enabledRules=Macrobenchmark \
--num-uniform-shards 3 \
--num-uniform-shards 6 \
--timeout 30m
- name: Generate Baseline Profiles
run: |
gcloud beta firebase test android run \
--type instrumentation \
--app ${{ github.workspace }}/MacrobenchmarkSample/app/build/outputs/apk/benchmarkRelease/app-benchmarkRelease.apk \
--test ${{ github.workspace }}/MacrobenchmarkSample/macrobenchmark/build/outputs/apk/benchmarkRelease/macrobenchmark-benchmarkRelease.apk \
--device model=lynx,version=33,locale=en,orientation=portrait \
--directories-to-pull /sdcard/Download \
--results-bucket gs://macrobenchmark-results \
--environment-variables clearPackageData=true,additionalTestOutputDir=/sdcard/Download,no-isolated-storage=true,androidx.benchmark.enabledRules=BaselineProfile \
--num-uniform-shards 2 \
--timeout 30m
8 changes: 3 additions & 5 deletions .github/workflows/macrobenchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ name: Builds Macrobenchmarks

on:
pull_request:
types: [opened, synchronize, reopened, 'labeled']
push:
branches: [ macrobenchmark, main ]
workflow_dispatch:

jobs:
# This job checks for any file changed within MacrobenchmarkSample/ folder
Expand All @@ -21,8 +19,8 @@ jobs:
macrobenchmark: ${{ steps.filter.outputs.macrobenchmark }}
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
Expand All @@ -39,7 +37,7 @@ jobs:
working-directory: ./MacrobenchmarkSample
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup JDK
id: setup-java
Expand Down
5 changes: 1 addition & 4 deletions MacrobenchmarkSample/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

plugins {
alias(libs.plugins.application)
alias(libs.plugins.compose)
alias(libs.plugins.kotlin)
alias(libs.plugins.baselineprofile)
}
Expand All @@ -38,10 +39,6 @@ android {
viewBinding = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
}

// [START macrobenchmark_setup_app_build_type]
buildTypes {
getByName("release") {
Expand Down
Loading

0 comments on commit 13131ca

Please sign in to comment.