name: CodSpeed
on:
workflow_dispatch:
jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
- uses: nixbuild/nix-quick-install-action@9f63be77f412a248c9d9a65a4c82cf066cdf8f0c
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Populate the nix store
run: nix develop --command echo
- name: Build the benchmark target(s)
run: nix develop --command cargo codspeed build -p bench --jobs 1
- name: Run benchmarks
uses: CodSpeedHQ/action@v5
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: nix develop --command cargo codspeed run -p bench
env:
RUST_BACKTRACE: 1