Update ci-flow with optional benches
@@ -217,29 +217,6 @@ description = "Runs all available bench files."
command = "cargo"
args = ["bench", "--all-features"]
-[tasks.bench-compile]
-description = "Compiles all available bench files."
-condition_script = [
-'''
-if [ -d "./benches" ]; then
- exit 0
-fi
-
-exit 1
-'''
-]
-command = "cargo"
-args = ["bench", "--all-features", "--no-run"]
-
-[tasks.bench-compile.windows]
-condition_script = [
-'''
-IF EXIST .\benches\NUL exit 0
-
-exit 1
-'''
-]
-
[tasks.post-bench]
[tasks.bench-flow]
@@ -255,6 +232,11 @@ description = "Runs the bench flow if conditions are met."
condition = { env_set = [ "CARGO_MAKE_RUN_BENCH" ] }
run_task = "bench-flow"
+[tasks.bench-compile]
+description = "Compiles all available bench files."
+command = "cargo"
+args = ["build", "--benches", "--all-features"]
+
[tasks.bench-conditioned-compile]
description = "Compiles all available bench files if conditions are met."
condition = { env_set = [ "CARGO_MAKE_BUILD_BENCH" ] }
