Benchmark #532
Workflow file for this run
This file contains hidden or 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
# Since most of PR does not affect benchmark, we do not run benchmarks on PR by default. | |
# Run manually if needed via `task codspeed:trigger` | |
name: Benchmark | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
codspeed: | |
name: CodSpeed Benchmark | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Environment | |
uses: ./.github/actions/setup-test-environment | |
- name: Install cargo-codspeed | |
run: cargo install cargo-codspeed --locked | |
- name: Build CodSpeed Benchmark Target(s) | |
run: cargo codspeed build | |
- name: Run the benchmarks | |
uses: CodSpeedHQ/action@v3 | |
with: | |
run: cargo codspeed run | |
token: ${{ secrets.CODSPEED_TOKEN }} |