Skip to content

Commit d673baa

Browse files
committed
ci: Use workflow commands to group output by target
(backport <#4179>) (cherry picked from commit 5b471ae)
1 parent 68d2da5 commit d673baa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ci/verify-build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ if [ "$TOOLCHAIN" = "nightly" ] ; then
2828
rustup component add rust-src
2929
fi
3030

31+
# Print GHA workflow commands
32+
echo_if_ci() {
33+
# Discard stderr so the "set -x" trace doesn't show up
34+
{ [ -n "${CI:-}" ] && echo "$1"; } 2> /dev/null
35+
}
36+
3137
# Run the tests for a specific target
3238
test_target() {
3339
target="$1"
@@ -297,11 +303,15 @@ filter_and_run() {
297303
}
298304

299305
for target in $targets; do
306+
echo_if_ci "::group::Target: $target"
300307
filter_and_run "$target"
308+
echo_if_ci "::endgroup::"
301309
done
302310

303311
for target in ${no_dist_targets:-}; do
312+
echo_if_ci "::group::Target: $target"
304313
filter_and_run "$target" 1
314+
echo_if_ci "::endgroup::"
305315
done
306316

307317
# Make sure we didn't accidentally filter everything

0 commit comments

Comments
 (0)