Fix benches CI job (#1456)

This commit is contained in:
Artyom Pavlov 2024-05-24 17:03:57 +03:00 committed by GitHub
parent ba7f5155d3
commit 6a4650691f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,9 @@ on:
jobs:
benches:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./benches
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
@ -16,8 +19,8 @@ jobs:
toolchain: nightly
components: clippy, rustfmt
- name: Rustfmt
run: cargo fmt --all -- --check
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy --all --all-targets -- -D warnings
run: cargo clippy --all-targets -- -D warnings
- name: Build
run: RUSTFLAGS=-Dwarnings cargo build --all-targets