diff --git a/.github/workflows/copy-branch.yml b/.github/workflows/copy-branch.yml index 6c363fe4..702b0c19 100644 --- a/.github/workflows/copy-branch.yml +++ b/.github/workflows/copy-branch.yml @@ -5,6 +5,7 @@ name: Duplicates main to old master branch # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the main branch on: + workflow_dispatch: push: branches: [ main ] diff --git a/.github/workflows/firebase_test_lab.yml b/.github/workflows/firebase_test_lab.yml index 7d3589db..b5f72872 100644 --- a/.github/workflows/firebase_test_lab.yml +++ b/.github/workflows/firebase_test_lab.yml @@ -3,6 +3,8 @@ name: Runs Macro Benchmarks on Firebase Test Lab on: push: branches: [ macrobenchmark, main ] + pull_request: + branches: [ main ] workflow_dispatch: jobs: @@ -95,4 +97,3 @@ jobs: --environment-variables clearPackageData=true,additionalTestOutputDir=/sdcard/Download,no-isolated-storage=true,androidx.benchmark.enabledRules=BaselineProfile \ --num-uniform-shards 2 \ --timeout 30m - diff --git a/.github/workflows/generate-bp.yml b/.github/workflows/generate-bp.yml index c5f6ba3a..d6592679 100644 --- a/.github/workflows/generate-bp.yml +++ b/.github/workflows/generate-bp.yml @@ -1,6 +1,8 @@ name: Generate Baseline Profiles on: + # We ONLY want to build baseline profiles for pushes on main. + # Do not trigger on "pull_request" because it takes too much time and resources. push: branches: [ main ] workflow_dispatch: @@ -77,4 +79,3 @@ jobs: with: name: "Production App" path: MacrobenchmarkSample/app/build/outputs/apk/release/*.apk - diff --git a/.github/workflows/macrobenchmark.yml b/.github/workflows/macrobenchmark.yml index 5057225e..88f2a3f3 100644 --- a/.github/workflows/macrobenchmark.yml +++ b/.github/workflows/macrobenchmark.yml @@ -1,6 +1,7 @@ name: Builds Macrobenchmarks on: + workflow_dispatch: pull_request: push: branches: [ macrobenchmark, main ]