Fix the CI to ignore a missing 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
