Skip to content

Commit 73bce79

Browse files
committed
Avoid running benchmarks on CI for faster runs
1 parent 0cca41f commit 73bce79

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
command: test
2424
args: --features=render-tui,render-tui-crossterm,render-line,render-line-crossterm,signal-hook,render-line-autoconfigure,progress-tree --all --bins --tests --examples
2525
- name: benchmarks
26-
run: make bench
26+
run: make bench-ci
2727

2828
build-and-test-on-windows:
2929
runs-on: windows-latest

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ tests: clippy check unit-test ## Run all tests we have
2626
bench: ## Run criterion based benchmark, works on stable Rust
2727
cargo bench
2828

29+
bench-ci: ## Just build the criterion based benchmark, avoid running.
30+
cargo bench --no-run
31+
2932
##@ Development
3033

3134
fmt: ## run nightly rustfmt for its extra features, but check that it won't upset stable rustfmt

0 commit comments

Comments
 (0)