Skip to content

fix: use proper pattern binding #470

fix: use proper pattern binding

fix: use proper pattern binding #470

Workflow file for this run

name: CodSpeed Benchmarks
on:
push:
branches:
- main
pull_request:
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-stable-${{ hashFiles('Cargo.toml') }}
- uses: actions-rs/toolchain@v1
name: Install Rust toolchain
with:
profile: minimal
toolchain: stable
override: true
- uses: baptiste0928/cargo-install@v3
name: Install cargo-codspeed (with cache)
with:
crate: cargo-codspeed
- uses: actions-rs/cargo@v1
name: Build benchmarks
with:
command: codspeed
args: build
- uses: CodSpeedHQ/action@v3
name: Run benchmarks
with:
run: cargo codspeed run