File tree 2 files changed +31
-0
lines changed
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"
40
40
41
41
CACHE_DOMAIN=" ${CACHE_DOMAIN:- ci-caches.rust-lang.org} "
42
42
43
+ ciStartGroup " Download or build the Docker image"
43
44
if [ -f " $docker_dir /$image /Dockerfile" ]; then
44
45
if [ " $CI " != " " ]; then
45
46
hash_key=/tmp/.docker-hash-key.txt
151
152
152
153
exit 1
153
154
fi
155
+ ciEndGroup
154
156
155
157
mkdir -p $HOME /.cargo
156
158
mkdir -p $objdir /tmp
Original file line number Diff line number Diff line change @@ -128,3 +128,32 @@ function ciCommandSetEnv {
128
128
exit 1
129
129
fi
130
130
}
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