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.
This commit is contained in:
Gino Valente 2023-01-03 22:18:21 +00:00
parent b44b606d29
commit f866d72f15

View file

@ -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")