File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,10 @@ declare -a failures
38
38
39
39
function opt_rebuild {
40
40
if [ " ${CI-} " == " true" ]; then
41
+ echo " ::group::Verbose Rebuild for $1 "
41
42
echo " ${bold} Rebuilding Verbose: $1 ${normal} "
42
43
make CFLAGS=-Werror V=1
44
+ echo " ::endgroup::"
43
45
fi
44
46
}
45
47
@@ -49,11 +51,20 @@ for mkfile in `find . -maxdepth 6 -name Makefile`; do
49
51
# Skip directories with leading _'s, useful for leaving test apps around
50
52
if [[ $( basename $dir ) == _* ]]; then continue ; fi
51
53
54
+ # If running under CI, give a hint to the UX to show each app build independently
55
+ if [ " ${CI-} " == " true" ]; then
56
+ echo " ::group::Build for $dir "
57
+ fi
58
+
52
59
pushd $dir > /dev/null
53
60
echo " "
54
61
echo " Building $dir "
55
62
make CFLAGS=-Werror -j $NUM_JOBS || { echo " ${bold} ⤤ Failure building $dir ${normal} " ; opt_rebuild $dir ; failures+=(" $dir " ); }
56
63
popd > /dev/null
64
+
65
+ if [ " ${CI-} " == " true" ]; then
66
+ echo " ::endgroup::"
67
+ fi
57
68
done
58
69
59
70
# https://stackoverflow.com/questions/7577052/bash-empty-array-expansion-with-set-u
Original file line number Diff line number Diff line change @@ -11,8 +11,10 @@ export TOCK_NO_CHECK_UNSTAGED=1
11
11
12
12
function opt_rebuild {
13
13
if [ " $CI " == " true" ]; then
14
+ echo " ::group::Verbose Rebuild for $1 "
14
15
echo " ${bold} Rebuilding Verbose: $1 ${normal} "
15
16
make format V=1
17
+ echo " ::endgroup::"
16
18
fi
17
19
}
18
20
@@ -25,11 +27,19 @@ for mkfile in `find . -maxdepth 5 -name Makefile`; do
25
27
# Skip directories with leading _'s, useful for leaving test apps around
26
28
if [[ $( basename $dir ) == _* ]]; then continue ; fi
27
29
30
+ if [ " ${CI-} " == " true" ]; then
31
+ echo " ::group::Build for $dir "
32
+ fi
33
+
28
34
pushd $dir > /dev/null
29
35
echo " "
30
36
echo " Formatting $dir "
31
37
make format || (echo " ${bold} ⤤ Failure formatting $dir ${normal} " ; opt_rebuild $dir ; exit 1)
32
38
popd > /dev/null
39
+
40
+ if [ " ${CI-} " == " true" ]; then
41
+ echo " ::endgroup::"
42
+ fi
33
43
done
34
44
35
45
echo " "
You can’t perform that action at this time.
0 commit comments