Debian Codegraph @

.github/workflows/benchmarks.yml

raw
1 name: Benchmarks
2
3 on:
4 pull_request:
5 types:
6 - opened
7 - reopened
8 issue_comment:
9 types:
10 - created
11
12 jobs:
13 run_benchmarks:
14 runs-on: ubuntu-latest
15 permissions:
16 pull-requests: write
17 # run either when pull request is opened or when comment body (only on pr) is /run-bench
18 if: (github.event_name == 'pull_request') || ((github.event.issue.pull_request != null) && github.event.comment.body == '/run-bench')
19 steps:
20 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
21 with:
22 submodules: true
23 - name: Obtain Rust
24 run: rustup override set stable
25 - name: Install hyperfine
26 run: cargo install hyperfine
27 - name: Install cmake
28 run: sudo apt-get update && sudo apt-get install cmake -y
29 - name: Build Binaries
30 run: make binaries
31 - name: Run Benchmarks
32 run: make bench-all
33 - name: Post result comment
34 uses: mshick/add-pr-comment@8e4927817251f1ff60c001f04568532b38e0b4a0 # v3.11.0
35 with:
36 message-path: bench-output.md
37 continue-on-error: true