We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f2bac7 commit 34e6ab9Copy full SHA for 34e6ab9
.github/workflows/rust.yml
@@ -48,6 +48,7 @@ jobs:
48
env:
49
DO_DOCSRS: true
50
DO_FMT: true
51
+ DO_BENCH: true
52
run: ./contrib/test.sh
53
54
MSRV:
contrib/test.sh
@@ -71,4 +71,16 @@ if [ "${DO_DOCS-false}" = true ]; then
71
RUSTDOCFLAGS="-D warnings" cargo +stable doc --all-features
72
fi
73
74
+# Bench if told to.
75
+if [ "${DO_BENCH-false}" = true ]
76
+then
77
+ # Technically we could use beta too but we only run this in CI using nightly.
78
+ if [ "$NIGHTLY" = false ]; then
79
+ echo "DO_BENCH requires a nightly toolchain (consider using RUSTUP_TOOLCHAIN)"
80
+ exit 1
81
+ fi
82
+
83
+ RUSTFLAGS='--cfg=bench' cargo bench
84
+fi
85
86
exit 0
0 commit comments