Skip to content

Commit

Permalink
Tools: added -e to cygwin build
Browse files Browse the repository at this point in the history
error if any part of build fails

also ensure cygwin build in CI is parallelised
  • Loading branch information
tridge committed Feb 16, 2024
1 parent 594f966 commit 3668616
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Tools/scripts/cygwin_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# the script assumes you start in the root of the ardupilot git tree

set -x
set -e

# TOOLCHAIN=i686-pc-cygwin
TOOLCHAIN=x86_64-pc-cygwin
Expand All @@ -22,13 +23,16 @@ git config --global --add safe.directory /cygdrive/d/a/ardupilot/ardupilot
rm -rf artifacts
mkdir artifacts

# cygwin doesn't work out the parallelism properly
WAF_OPTIONS="-j8"

(
python ./waf --color yes --toolchain $TOOLCHAIN --board sitl configure 2>&1
python ./waf plane 2>&1
python ./waf copter 2>&1
python ./waf heli 2>&1
python ./waf rover 2>&1
python ./waf sub 2>&1
python ./waf plane $WAF_OPTIONS 2>&1
python ./waf copter $WAF_OPTIONS 2>&1
python ./waf heli $WAF_OPTIONS 2>&1
python ./waf rover $WAF_OPTIONS 2>&1
python ./waf sub $WAF_OPTIONS 2>&1
) | tee artifacts/build.txt

# copy both with exe and without to cope with differences
Expand Down

0 comments on commit 3668616

Please sign in to comment.