Repository navigation
53 lines (48 loc) · 1.61 KB
/
Copy pathPerformanceCheck.yaml
File metadata and controls
53 lines (48 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Performance Check
on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
benchmark-android:
uses: Frozen-Bytes/workflow-testing/.github/workflows/android-macrobenchmark-gradle.yml@main
strategy:
fail-fast: false
matrix:
include:
- name: "Pixel"
profile: "pixel"
name: ${{ matrix.name }}
with:
api-level: 34
target: google_apis
arch: x86_64
profile: "${{ matrix.profile }}"
gradle-cache-readonly: false
baseline-branch: "main"
candidate-branch: "${{ github.head_ref }}"
runs: 5
args: "--verbose --all-methods --measures TID FFO MEM_RSS_MAX --aggregate median --fit 5"
instrument-args: "-e package com.google.samples.apps.nowinandroid.Generator"
artifact-name: "benchcomp-${{ matrix.name }}.json"
artifact-macrobenchmark-name: "${{ matrix.name }}-raw-macrobenchmark"
device-alias: "${{ matrix.name }}"
publish-report:
runs-on: ubuntu-latest
needs: benchmark-android
permissions:
pull-requests: write
contents: read
steps:
- name: Create Bot Token
id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ vars.GH_APP_CLIENT_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- name: Publish Report
uses: Frozen-Bytes/actions/publish-report@v3
with:
github-token: ${{ steps.app-token.outputs.token }}
artifact-prefix: "benchcomp-"
comment-on-pr: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}