Skip to content

Commit deca5c9

Browse files
committed
wip
1 parent a18b34d commit deca5c9

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

src/ci/docker/run.sh

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ source "$ci_dir/shared.sh"
4040

4141
CACHE_DOMAIN="${CACHE_DOMAIN:-ci-caches.rust-lang.org}"
4242

43+
ciStartGroup "Download or build the Docker image"
4344
if [ -f "$docker_dir/$image/Dockerfile" ]; then
4445
if [ "$CI" != "" ]; then
4546
hash_key=/tmp/.docker-hash-key.txt
@@ -151,6 +152,7 @@ else
151152

152153
exit 1
153154
fi
155+
ciEndGroup
154156

155157
mkdir -p $HOME/.cargo
156158
mkdir -p $objdir/tmp

src/ci/shared.sh

+29
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)