ci: Enable continuous benchmarks through codspeed #3
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: CodSpeed | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
# `workflow_dispatch` allows CodSpeed to trigger backtest | |
# performance analysis in order to generate initial data. | |
workflow_dispatch: | |
jobs: | |
benchmarks: | |
name: Run benchmarks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install codspeed | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-codspeed | |
- name: Build benchmarks | |
run: > | |
cargo codspeed build | |
bezout_coeffs | |
mem_io | |
prove_fib | |
verify_halt | |
- name: Run benchmarks | |
uses: CodSpeedHQ/action@v3 | |
with: | |
run: cargo codspeed run | |
token: ${{ secrets.CODSPEED_TOKEN }} |