Fix the CI to ignore a missing file

This commit is contained in:
Clément Renault 2023-01-17 16:26:03 +01:00
parent 507a7bad96
commit 2b1f6a7f11
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -124,4 +124,9 @@ jobs:
- name: Cache dependencies
uses: Swatinem/rust-cache@v2.2.0
- name: Run cargo fmt
run: cargo fmt --all -- --check
# Since we never ran the `build.rs` script in the benchmark directory we are missing one auto-generated import file.
# Since we want to trigger (and fail) this action as fast as possible, instead of building the benchmark crate
# we are going to create an empty file where rustfmt expects it.
run: |
echo -ne "\n" > benchmarks/benches/datasets_paths.rs
cargo fmt --all -- --check