-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (42 loc) · 1.14 KB
/
baseline.yml
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
name: Baseline
on:
push:
branches:
- master
workflow_dispatch: {}
permissions:
deployments: write
contents: write
env:
CI: true
jobs:
cancel-previous:
runs-on: ubuntu-20.04
timeout-minutes: 3
steps:
- uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
all_but_latest: true # can cancel workflows scheduled later
baseline:
name: Baseline
runs-on: ubuntu-20.04
needs:
- cancel-previous
steps:
- uses: actions/checkout@v4
- run: sudo -E bash ci/environment/bootstrap-ubuntu-20.04.sh
- run: bash ci/prepare.sh
- run: cargo build --release 2>&1 | tee build.txt
- run: bash ./ci/extract_baseline_metrics.sh > build.json
- name: Store bench results
uses: benchmark-action/github-action-benchmark@v1
with:
name: Build
tool: customSmallerIsBetter
output-file-path: build.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
comment-on-alert: true
benchmark-data-dir-path: bench
max-items-in-chart: 100