Skip to content

Commit 3e4866a

Browse files
committed
ci: add 'build block' benchmark to PR checks
1 parent 6b22968 commit 3e4866a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: '"Build block" benchmark'
2+
3+
on:
4+
pull_request:
5+
branches: ["**"]
6+
7+
permissions:
8+
pull-requests: write
9+
10+
jobs:
11+
build-ethrex-trie:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Fetch Rust cache
18+
uses: Swatinem/rust-cache@v2
19+
20+
- name: Install Rust
21+
uses: dtolnay/rust-toolchain@stable
22+
23+
- name: Benchmarks
24+
uses: boa-dev/criterion-compare-action@v3
25+
with:
26+
cwd: "cmd/ethrex/bench"
27+
benchName: "build_block"
28+
branchName: ${{ github.base_ref }}
29+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)