fix: force install cargo-codspeed
#6
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
benchmark: | |
name: Run Benchmarks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Linux dependencies | |
uses: ./.github/actions/install-linux-deps | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Use Cache | |
uses: Leafwing-Studios/cargo-cache@v2 | |
with: | |
sweep-cache: true | |
- name: Install cargo-codspeed | |
run: cargo install cargo-codspeed --locked --force | |
- name: Build Benchmarks | |
run: cargo codspeed build -p benches | |
- name: Run Benchmarks | |
uses: CodSpeedHQ/action@v3 | |
with: | |
run: cargo codspeed run -p benches | |
token: ${{ secrets.CODSPEED_TOKEN }} |