From d3d058c11ea007b3deec8552d4cd31dd680bdec4 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Fri, 6 Dec 2024 23:59:01 -0500 Subject: [PATCH] ci: Use workflow commands to group output by target --- ci/verify-build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ci/verify-build.sh b/ci/verify-build.sh index a433f047095d..165d0ffc277f 100755 --- a/ci/verify-build.sh +++ b/ci/verify-build.sh @@ -28,6 +28,13 @@ if [ "$TOOLCHAIN" = "nightly" ] ; then rustup component add rust-src fi +# Print GHA workflow commands +echo_if_ci() { + set +x + [ -n "${CI:-}" ] && echo "$1" + set -x +} + # Run the tests for a specific target test_target() { target="$1" @@ -293,11 +300,15 @@ filter_and_run() { } for target in $targets; do + echo_if_ci "::group::Target: $target" filter_and_run "$target" + echo_if_ci "::endgroup::" done for target in ${no_dist_targets:-}; do + echo_if_ci "::group::Target: $target" filter_and_run "$target" 1 + echo_if_ci "::endgroup::" done # Make sure we didn't accidentally filter everything