diff --git a/ci/test-bench.sh b/ci/test-bench.sh index 79b616e3e2..908bc60c01 100755 --- a/ci/test-bench.sh +++ b/ci/test-bench.sh @@ -3,6 +3,22 @@ set -e cd "$(dirname "$0")/.." +annotate() { + ${BUILDKITE:-false} && { + buildkite-agent annotate "$@" + } +} + +ci/affects-files.sh \ + .rs: \ + ci/test-bench.sh: \ +|| { + annotate --style info --context coverage-info \ + "Bench skipped as no .rs files were modified" + exit 0 +} + + source ci/_ source ci/upload-ci-artifact.sh