Browse Source

github: build MatekF405 with/without HAL_QUADPLANE_ENABLED

gps-1.3.1
Peter Barker 3 years ago committed by Andrew Tridgell
parent
commit
221e7c612e
  1. 14
      .github/workflows/test_size.yml

14
.github/workflows/test_size.yml

@ -86,6 +86,20 @@ jobs: @@ -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: |

Loading…
Cancel
Save