Browse Source

.github: switch size-test targets to VRUBrain-v51, f103-GPS and Hitec-Airspeed

gps-1.3.1
Peter Barker 3 years ago committed by Peter Barker
parent
commit
435055d39c
  1. 19
      .github/workflows/test_size.yml

19
.github/workflows/test_size.yml

@ -21,7 +21,9 @@ jobs: @@ -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: @@ -59,7 +61,12 @@ jobs:
PATH="/github/home/.local/bin:$PATH"
cd master
./waf configure --board ${{matrix.config}}
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: @@ -82,7 +89,12 @@ jobs:
git rebase ardupilot/master
git submodule update --init --recursive --depth=1
./waf configure --board ${{matrix.config}}
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: @@ -112,8 +124,13 @@ jobs:
run: |
python3 -m pip install -U weasyprint elf_diff anytree
mkdir elf_diff
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

Loading…
Cancel
Save