From 435055d39ccb539602b8c91d20497c1dc84a0110 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 8 Jan 2022 22:16:48 +1100 Subject: [PATCH] .github: switch size-test targets to VRUBrain-v51, f103-GPS and Hitec-Airspeed --- .github/workflows/test_size.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test_size.yml b/.github/workflows/test_size.yml index 05ed965b0b..186cbd0b2c 100644 --- a/.github/workflows/test_size.yml +++ b/.github/workflows/test_size.yml @@ -21,7 +21,9 @@ jobs: config: [ Durandal, MatekF405, - Pixhawk1-1M + Pixhawk1-1M, + Hitec-Airspeed, # see special code for Periph below (3 places!) + f103-GPS # see special code for Periph below (3 places!) ] steps: - uses: actions/checkout@v2 @@ -59,7 +61,12 @@ jobs: PATH="/github/home/.local/bin:$PATH" cd master ./waf configure --board ${{matrix.config}} - ./waf + if [ "${{matrix.config}}" = "Hitec-Airspeed" ] || + [ "${{matrix.config}}" = "f103-GPS" ]; then + ./waf AP_Periph + else + ./waf + fi mkdir -p $GITHUB_WORKSPACE/master_bin cp -r build/${{matrix.config}}/bin/* $GITHUB_WORKSPACE/master_bin/ @@ -82,7 +89,12 @@ jobs: git rebase ardupilot/master git submodule update --init --recursive --depth=1 ./waf configure --board ${{matrix.config}} - ./waf + if [ "${{matrix.config}}" = "Hitec-Airspeed" ] || + [ "${{matrix.config}}" = "f103-GPS" ]; then + ./waf AP_Periph + else + ./waf + fi mkdir $GITHUB_WORKSPACE/pr_bin cp -r build/${{matrix.config}}/bin/* $GITHUB_WORKSPACE/pr_bin/ @@ -112,8 +124,13 @@ jobs: run: | python3 -m pip install -U weasyprint elf_diff anytree mkdir elf_diff - python3 -m elf_diff --bin_prefix=arm-none-eabi- --html_dir=elf_diff/plane $GITHUB_WORKSPACE/master_bin/arduplane $GITHUB_WORKSPACE/pr_bin/arduplane - python3 -m elf_diff --bin_prefix=arm-none-eabi- --html_dir=elf_diff/copter $GITHUB_WORKSPACE/master_bin/arducopter $GITHUB_WORKSPACE/pr_bin/arducopter + if [ "${{matrix.config}}" = "Hitec-Airspeed" ] || + [ "${{matrix.config}}" = "f103-GPS" ]; then + python3 -m elf_diff --bin_prefix=arm-none-eabi- --html_dir=elf_diff/AP_Periph $GITHUB_WORKSPACE/master_bin/AP_Periph $GITHUB_WORKSPACE/pr_bin/AP_Periph + else + python3 -m elf_diff --bin_prefix=arm-none-eabi- --html_dir=elf_diff/plane $GITHUB_WORKSPACE/master_bin/arduplane $GITHUB_WORKSPACE/pr_bin/arduplane + python3 -m elf_diff --bin_prefix=arm-none-eabi- --html_dir=elf_diff/copter $GITHUB_WORKSPACE/master_bin/arducopter $GITHUB_WORKSPACE/pr_bin/arducopter + fi zip -r elf_diff.zip elf_diff - name: Archive elf_diff output