rand/.github/workflows/benches.yml
Diggory Hardy 9e030aa221
Migrate remaining benchmarks to Criterion (#1490)
Translate everything still using the old test harness to Criterion.
2024-09-06 09:07:47 +01:00

27 lines
591 B
YAML

name: Benches
on:
pull_request:
paths:
- ".github/workflows/benches.yml"
- "benches/**"
jobs:
benches:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./benches
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: clippy, rustfmt
- name: Rustfmt
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Build
run: RUSTFLAGS=-Dwarnings cargo test --benches