Skip bench of no .rs files are modified in a PR
This commit is contained in:
parent
3efbffe4e3
commit
b4fe70d3d8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue