From f866d72f150fccb6d4aa5b96688d664cc401517c Mon Sep 17 00:00:00 2001 From: Gino Valente Date: Tue, 3 Jan 2023 22:18:21 +0000 Subject: [PATCH] Fix: CI `bench-check` command (#7077) # Objective I noticed that running the following command didn't actually do anything: ``` cargo run -p ci -- bench-check ``` ## Solution Made it so that running `cargo run -p ci -- bench-check` actually runs a compile check on the `benches` directory. --- tools/ci/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci/src/main.rs b/tools/ci/src/main.rs index 4fad887d3a..3796f1f11c 100644 --- a/tools/ci/src/main.rs +++ b/tools/ci/src/main.rs @@ -133,7 +133,7 @@ fn main() { .expect("Please fix doc warnings in output above."); } - if what_to_run.contains(Check::COMPILE_FAIL) { + if what_to_run.contains(Check::BENCH_CHECK) { let _subdir = sh.push_dir("benches"); // Check that benches are building cmd!(sh, "cargo check --benches --target-dir ../target")