mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Tools: ci: only do Make builds in some special cases
build using Make system for PX4-v3 or, if it is a cron job, for all PX4 boards and SITL
This commit is contained in:
parent
ad18e99bef
commit
80e784c93d
@ -61,8 +61,8 @@ function get_time {
|
||||
|
||||
echo "Targets: $CI_BUILD_TARGET"
|
||||
for t in $CI_BUILD_TARGET; do
|
||||
# only do make-based builds for GCC when target is PX4 or when launched by a scheduled job
|
||||
if [[ "$cxx_compiler" != "clang++" && ( $t == "px4"* || -n ${CI_CRON_JOB+1} ) ]]; then
|
||||
# only do make-based builds for GCC, when target is PX4-v3 or build is launched by a scheduled job and target is a PX4 board or SITL
|
||||
if [[ "$cxx_compiler" != "clang++" && ($t == "px4-v3" || (-n ${CI_CRON_JOB+1} && ($t == "px4"* || $t == "sitl"))) ]]; then
|
||||
echo "Starting make based build for target ${t}..."
|
||||
for v in "ArduPlane" "ArduCopter" "APMrover2" "ArduSub" "AntennaTracker"; do
|
||||
echo "Building $v for ${t}..."
|
||||
@ -80,15 +80,6 @@ for t in $CI_BUILD_TARGET; do
|
||||
ccache -s && ccache -z
|
||||
popd
|
||||
done
|
||||
|
||||
if [[ $t == linux ]]; then
|
||||
echo "Building Replay for ${t}..."
|
||||
|
||||
pushd "Tools/Replay"
|
||||
make clean
|
||||
make -j2
|
||||
popd
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -n ${waf_supported_boards[$t]} && -z ${CI_CRON_JOB+1} ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user