github: build MatekF405 with/without HAL_QUADPLANE_ENABLED

This commit is contained in:
Peter Barker 2021-09-14 12:51:51 +10:00 committed by Andrew Tridgell
parent 07a114052c
commit 221e7c612e
1 changed files with 14 additions and 0 deletions

View File

@ -86,6 +86,20 @@ jobs:
mkdir $GITHUB_WORKSPACE/pr_bin
cp -r build/${{matrix.config}}/bin/* $GITHUB_WORKSPACE/pr_bin/
# build MatekF405 Plane without quadplane
if [ "${{matrix.config}}" = "MatekF405" ]; then
PLANE_BINARY="build/MatekF405/bin/arduplane.bin"
echo "normal size"
ls -l "$PLANE_BINARY"
EXTRA_HWDEF="/tmp/extra-options.def"
echo "define HAL_QUADPLANE_ENABLED 0" >"$EXTRA_HWDEF"
./waf configure --board ${{matrix.config}} --extra-hwdef="$EXTRA_HWDEF"
./waf plane
rm "$EXTRA_HWDEF"
echo "non-quadplane size:"
ls -l "$PLANE_BINARY"
fi
- name: Full size compare with Master
shell: bash
run: |