name: Perf (lightweight)
# Moved off pull_request onto a nightly schedule. See plans/binary-bifurcation.md
# Phase A (heavy-job sweep). Manual runs remain via workflow_dispatch.
on:
schedule:
- cron: "36 4 * * *"
workflow_dispatch:
push:
branches:
permissions:
contents: read
jobs:
perf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.94.0
- uses: Swatinem/rust-cache@v2
- name: Run tests (including perf guards)
run: cargo test --all --all-features
- name: Run benchmarks (smoke)
run: cargo bench --bench perf -- --sample-size 10