ci: force single build mode for all configs
We currently build all test configs in release and debug mode, even when
only one set of binaries are needed. Where this is the case i.e. boot
tests) we should avoid building unused binaries. In some instances the
package step can take up to 4 minutes per build mode, this of-course
wasted compute time.
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
Change-Id: Ic1082772f2983720cbd5a6e61902dee65c461f9f
diff --git a/script/build_package.sh b/script/build_package.sh
index e165da6..97230b6 100755
--- a/script/build_package.sh
+++ b/script/build_package.sh
@@ -1323,6 +1323,14 @@
echo
echo "$run_config_candidates" | sed 's/^\|\n/\t/g'
echo
+
+ if [ ! -n "$bin_mode" ]; then
+ if echo $run_config_candidates | grep -wq "debug"; then
+ bin_mode="debug"
+ else
+ bin_mode="release"
+ fi
+ fi
fi
fi