name: nightly-benchmark
on:
schedule:
- cron: '17 4 * * *'
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
RUSTFLAGS: -C debuginfo=0
jobs:
benchmark:
runs-on: ubuntu-24.04
steps:
- name: 📂 Checkout code
uses: actions/checkout@v6
- name: 💰 Cargo cache
uses: Swatinem/rust-cache@v2
- name: 💰 Rust repo cache
uses: actions/cache@v5
with:
path: target/bench-repos
key: bench-repos-rust-${{ runner.os }}
- name: 📊 Run all benchmarks
run: cargo bench --bench list
- name: 📦 Upload benchmark results
uses: actions/upload-artifact@v7
with:
name: benchmark-results-${{ github.run_id }}
path: target/criterion