Skip to content

Switch to uv and update CI workflows #1

Switch to uv and update CI workflows

Switch to uv and update CI workflows #1

Workflow file for this run

name: Benchmarks
on:
push:
branches:
- "main"
pull_request:
workflow_dispatch:
jobs:
benchmarks:
name: Benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- run: rustup toolchain install stable --profile minimal --no-self-update
- uses: Swatinem/rust-cache@v2
- uses: cargo-bins/cargo-binstall@main
- run: cargo binstall cargo-codspeed
# FIXME(swatinem): `cargo-codspeed` does currently not support `--all-features`
- name: Build the benchmark target(s)
run: cargo codspeed build --features=testing
- name: Run the benchmarks
uses: CodSpeedHQ/action@v3
with:
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}