-
-
Notifications
You must be signed in to change notification settings - Fork 35
34 lines (33 loc) · 1.12 KB
/
bench.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
name: Continuous Benchmarking with Bencher
on:
push:
paths:
- 'src/**'
- 'benches/**'
- 'ogg_pager/**'
branches:
- main
workflow_dispatch:
jobs:
benchmark_with_bencher:
name: Benchmark with Bencher
runs-on: ubuntu-latest
env:
BENCHER_PROJECT: lofty
BENCHER_BRANCH: main
BENCHER_API_TOKEN: ${{ secrets.BENCHER_API_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Install callgrind
run: sudo apt-get install -y valgrind
- name: Install iai-callgrind-runner
run: |
version=$(cargo metadata --format-version=1 |\
jq '.packages[] | select(.name == "iai-callgrind").version' |\
tr -d '"'
)
cargo install iai-callgrind-runner --version $version
- uses: bencherdev/bencher@main
- name: Run Bencher
run: |
bencher run --adapter rust_iai_callgrind --err "cargo bench"