File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ if [ "$TOOLCHAIN" = "nightly" ] ; then
28
28
rustup component add rust-src
29
29
fi
30
30
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
+
31
37
# Run the tests for a specific target
32
38
test_target () {
33
39
target=" $1 "
@@ -297,11 +303,15 @@ filter_and_run() {
297
303
}
298
304
299
305
for target in $targets ; do
306
+ echo_if_ci " ::group::Target: $target "
300
307
filter_and_run " $target "
308
+ echo_if_ci " ::endgroup::"
301
309
done
302
310
303
311
for target in ${no_dist_targets:- } ; do
312
+ echo_if_ci " ::group::Target: $target "
304
313
filter_and_run " $target " 1
314
+ echo_if_ci " ::endgroup::"
305
315
done
306
316
307
317
# Make sure we didn't accidentally filter everything
You can’t perform that action at this time.
0 commit comments