-
-
Notifications
You must be signed in to change notification settings - Fork 141
36 lines (34 loc) · 1021 Bytes
/
benchmarks.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
name: benchmarks
on:
pull_request:
types:
- opened
- reopened
issue_comment:
types:
- created
jobs:
run_benchmarks:
runs-on: ubuntu-latest
permissions:
pull-requests: write
# run either when pull request is opened or when comment body (only on pr) is /run-bench
if: (github.event_name == 'pull_request') || ((github.event.issue.pull_request != null) && github.event.comment.body == '/run-bench')
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install hyperfine
run: cargo install hyperfine
- name: Install cmake
run: sudo apt-get update && sudo apt-get install cmake -y
- name: Build Binaries
run: make binaries
- name: Run Benchmarks
run: make bench-all
- name: Post result comment
uses: mshick/add-pr-comment@v2
with:
message-path: bench-output.md