File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ source "$ci_dir/shared.sh"
4040
4141CACHE_DOMAIN=" ${CACHE_DOMAIN:- ci-caches.rust-lang.org} "
4242
43+ ciStartGroup " Download or build the Docker image"
4344if [ -f " $docker_dir /$image /Dockerfile" ]; then
4445 if [ " $CI " != " " ]; then
4546 hash_key=/tmp/.docker-hash-key.txt
151152
152153 exit 1
153154fi
155+ ciEndGroup
154156
155157mkdir -p $HOME /.cargo
156158mkdir -p $objdir /tmp
Original file line number Diff line number Diff line change @@ -128,3 +128,32 @@ function ciCommandSetEnv {
128128 exit 1
129129 fi
130130}
131+
132+ function ciStartGroup {
133+ if [[ $# -ne 1 ]]; then
134+ echo " usage: $0 <name>"
135+ exit 1
136+ fi
137+ name=" $1 "
138+
139+ # Only run this on the CI platforms that support the feature. Losing
140+ # support for this is not a big deal, logs would just be a bit harder to
141+ # navigate.
142+ if isGitHubActions; then
143+ echo " ::group::${name} "
144+ fi
145+ }
146+
147+ function ciEndGroup {
148+ if [[ $# -ne 0 ]]; then
149+ echo " usage: $0 "
150+ exit 1
151+ fi
152+
153+ # Only run this on the CI platforms that support the feature. Losing
154+ # support for this is not a big deal, logs would just be a bit harder to
155+ # navigate.
156+ if isGitHubActions; then
157+ echo " ::endgroup::"
158+ fi
159+ }
You can’t perform that action at this time.
0 commit comments