Skip to content

test: add case for #65 #223

test: add case for #65

test: add case for #65 #223

Workflow file for this run

name: Benchmark
permissions: {}
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
paths:
- "src/*.rs"
- "Cargo.lock"
push:
branches:
- main
paths:
- "src/*.rs"
- "Cargo.lock"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
benchmark:
name: Benchmark
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1
- uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0
with:
cache-key: benchmark
save-cache: ${{ github.ref_name == 'main' }}
tools: cargo-codspeed
- uses: ./.github/actions/pnpm
- run: cargo codspeed build --features codspeed
env:
RUSTFLAGS: "-C debuginfo=1 -C strip=none"
- uses: CodSpeedHQ/action@0010eb0ca6e89b80c88e8edaaa07cfe5f3e6664d # v3.5.0
timeout-minutes: 30
with:
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}