Skip to content

ci(l1,l2): add 'build block' benchmark to PR checks #5

ci(l1,l2): add 'build block' benchmark to PR checks

ci(l1,l2): add 'build block' benchmark to PR checks #5

name: '"Build block" benchmark'
on:
pull_request:
branches: ["**"]
permissions:
pull-requests: write
jobs:
build-block-benchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Fetch Rust cache
uses: Swatinem/rust-cache@v2
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Benchmarks
uses: boa-dev/criterion-compare-action@v3
with:
cwd: "cmd/ethrex/bench"
benchName: "build_block_benchmark"
branchName: ${{ github.base_ref }}
token: ${{ secrets.GITHUB_TOKEN }}