build: Add boon to benchmarks #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmarks | |
on: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
rust: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: jsonschema | |
- run: cargo install cargo-codspeed | |
- run: cargo codspeed build | |
working-directory: ./jsonschema | |
- uses: CodSpeedHQ/action@v2 | |
with: | |
run: cargo codspeed run jsonschema | |
token: ${{ secrets.CODSPEED_TOKEN }} | |
working-directory: ./jsonschema |