Skip to content

Commit 5b471ae

Browse files
committed
ci: Use workflow commands to group output by target
1 parent cde5e54 commit 5b471ae

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"
@@ -293,11 +299,15 @@ filter_and_run() {
293299
}
294300

295301
for target in $targets; do
302+
echo_if_ci "::group::Target: $target"
296303
filter_and_run "$target"
304+
echo_if_ci "::endgroup::"
297305
done
298306

299307
for target in ${no_dist_targets:-}; do
308+
echo_if_ci "::group::Target: $target"
300309
filter_and_run "$target" 1
310+
echo_if_ci "::endgroup::"
301311
done
302312

303313
# Make sure we didn't accidentally filter everything

0 commit comments

Comments
 (0)