From 2b1f6a7f11ee1be785b60726a3e2b88cfe3162c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Tue, 17 Jan 2023 16:26:03 +0100 Subject: [PATCH] Fix the CI to ignore a missing file --- .github/workflows/rust.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f1260124e..f5d54029b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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