-
-
Notifications
You must be signed in to change notification settings - Fork 1k
45 lines (42 loc) · 1.11 KB
/
bench-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
name: Benchmark Baseline
permissions:
contents: read
on:
push:
branches: master
jobs:
bench:
name: Binary Size
strategy:
matrix:
build: [linux]
include:
- build: linux
os: buildjet-8vcpu-ubuntu-2204
runs-on: "${{ matrix.os }}"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Install Bencher
uses: bencherdev/bencher@main
- name: Build
run: "cargo build --package clap --example git-derive -F derive --release"
env:
CARGO_PROFILE_RELEASE_STRIP: true
- name: Report
run: |
bencher run \
--project "${{ github.repository }}" \
--branch "${{ github.ref_name }}" \
--testbed "${{ matrix.os }}" \
--token '${{ secrets.BENCHER_API_TOKEN }}' \
--github-actions '${{ secrets.GITHUB_TOKEN }}' \
--adapter json \
--file-size target/release/examples/git-derive
permissions:
checks: write