-
Notifications
You must be signed in to change notification settings - Fork 25
47 lines (39 loc) · 1.24 KB
/
bench.yaml
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: 📈 Benchmark
on:
push:
branches: [ main ]
pull_request:
branches: [ '**' ]
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
override: true
toolchain: stable
profile: minimal
- name: Cache Project
uses: Swatinem/rust-cache@v2
- name: Run Benchmark
run: cargo bench -q -p wnfs-bench -- --output-format bencher | tee output.txt
- name: Upload Benchmark Result Artifact
uses: actions/upload-artifact@v3
with:
name: bench_result
path: output.txt
- name: Store Benchmark Result
uses: benchmark-action/github-action-benchmark@v1
with:
name: Rust Benchmark
tool: 'cargo'
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: ${{ github.event_name == 'push' && github.repository == 'wnfs-wg/rs-wnfs' && github.ref == 'refs/heads/main' }}
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@wnfs-wg/fission'