Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Carbonix Test plane | |
on: | |
push: | |
paths-ignore: | |
# remove other vehicles | |
- 'AntennaTracker/**' | |
- 'ArduCopter/**' | |
- 'ArduSub/**' | |
- 'Blimp/**' | |
- 'Rover/**' | |
# remove non SITL HAL | |
- 'libraries/AP_HAL_ChibiOS/**' | |
- 'libraries/AP_HAL_ESP32/**' | |
# remove non SITL directories | |
- 'Tools/AP_Bootloader/**' | |
- 'Tools/AP_Periph/**' | |
- 'Tools/bootloaders/**' | |
- 'Tools/CHDK-Script/**' | |
- 'Tools/CodeStyle/**' | |
- 'Tools/completion/**' | |
- 'Tools/CPUInfo/**' | |
- 'Tools/debug/**' | |
- 'Tools/environment_install/**' | |
- 'Tools/FilterTestTool/**' | |
- 'Tools/Frame_params/**' | |
- 'Tools/geotag/**' | |
- 'Tools/GIT_Test/**' | |
- 'Tools/gittools/**' | |
- 'Tools/Hello/**' | |
- 'Tools/IO_Firmware/**' | |
- 'Tools/Linux_HAL_Essentials/**' | |
- 'Tools/LogAnalyzer/**' | |
- 'Tools/Pozyx/**' | |
- 'Tools/PrintVersion.py' | |
- 'Tools/Replay/**' | |
- 'Tools/simulink/**' | |
- 'Tools/UDP_Proxy/**' | |
- 'Tools/vagrant/**' | |
- 'Tools/Vicon/**' | |
# Discard python file from Tools/scripts as not used | |
- 'Tools/scripts/**.py' | |
- 'Tools/scripts/build_sizes/**' | |
- 'Tools/scripts/build_tests/**' | |
- 'Tools/scripts/CAN/**' | |
- 'Tools/scripts/signing/**' | |
# Remove other vehicles autotest | |
- 'Tools/autotest/antennatracker.py' | |
- 'Tools/autotest/arducopter.py' | |
- 'Tools/autotest/ardusub.py' | |
- 'Tools/autotest/balancebot.py' | |
- 'Tools/autotest/helicopter.py' | |
- 'Tools/autotest/location.txt' | |
- 'Tools/autotest/rover.py' | |
- 'Tools/autotest/sailboat.py' | |
- 'Tools/autotest/swarminit.txt' | |
# Remove markdown files as irrelevant | |
- '**.md' | |
# Remove dotfile at root directory | |
- './.dir-locals.el' | |
- './.dockerignore' | |
- './.editorconfig' | |
- './.flake8' | |
- './.gitattributes' | |
- './.github' | |
- './.gitignore' | |
- './.pre-commit-config.yaml' | |
- './.pydevproject' | |
- './.valgrind-suppressions' | |
- './.valgrindrc' | |
- 'Dockerfile' | |
- 'Vagrantfile' | |
- 'Makefile' | |
# Remove some directories check | |
- '.vscode/**' | |
- '.github/ISSUE_TEMPLATE/**' | |
# Remove change on other workflows | |
- '.github/workflows/test_environment.yml' | |
pull_request: | |
paths-ignore: | |
# remove other vehicles | |
- 'AntennaTracker/**' | |
- 'ArduCopter/**' | |
- 'ArduSub/**' | |
- 'Blimp/**' | |
- 'Rover/**' | |
# remove non SITL HAL | |
- 'libraries/AP_HAL_ChibiOS/**' | |
- 'libraries/AP_HAL_ESP32/**' | |
# remove non SITL directories | |
- 'Tools/AP_Bootloader/**' | |
- 'Tools/AP_Periph/**' | |
- 'Tools/bootloaders/**' | |
- 'Tools/CHDK-Script/**' | |
- 'Tools/CodeStyle/**' | |
- 'Tools/completion/**' | |
- 'Tools/CPUInfo/**' | |
- 'Tools/debug/**' | |
- 'Tools/environment_install/**' | |
- 'Tools/FilterTestTool/**' | |
- 'Tools/Frame_params/**' | |
- 'Tools/geotag/**' | |
- 'Tools/GIT_Test/**' | |
- 'Tools/gittools/**' | |
- 'Tools/Hello/**' | |
- 'Tools/IO_Firmware/**' | |
- 'Tools/Linux_HAL_Essentials/**' | |
- 'Tools/LogAnalyzer/**' | |
- 'Tools/Pozyx/**' | |
- 'Tools/PrintVersion.py' | |
- 'Tools/Replay/**' | |
- 'Tools/simulink/**' | |
- 'Tools/UDP_Proxy/**' | |
- 'Tools/vagrant/**' | |
- 'Tools/Vicon/**' | |
# Discard python file from Tools/scripts as not used | |
- 'Tools/scripts/**.py' | |
- 'Tools/scripts/build_sizes/**' | |
- 'Tools/scripts/build_tests/**' | |
- 'Tools/scripts/CAN/**' | |
- 'Tools/scripts/signing/**' | |
# Remove other vehicles autotest | |
- 'Tools/autotest/antennatracker.py' | |
- 'Tools/autotest/arducopter.py' | |
- 'Tools/autotest/ardusub.py' | |
- 'Tools/autotest/balancebot.py' | |
- 'Tools/autotest/helicopter.py' | |
- 'Tools/autotest/location.txt' | |
- 'Tools/autotest/rover.py' | |
- 'Tools/autotest/sailboat.py' | |
- 'Tools/autotest/swarminit.txt' | |
# Remove markdown files as irrelevant | |
- '**.md' | |
# Remove dotfile at root directory | |
- './.dir-locals.el' | |
- './.dockerignore' | |
- './.editorconfig' | |
- './.flake8' | |
- './.gitattributes' | |
- './.github' | |
- './.gitignore' | |
- './.pre-commit-config.yaml' | |
- './.pydevproject' | |
- './.valgrind-suppressions' | |
- './.valgrindrc' | |
- 'Dockerfile' | |
- 'Vagrantfile' | |
- 'Makefile' | |
# Remove some directories check | |
- '.vscode/**' | |
- '.github/ISSUE_TEMPLATE/**' | |
# Remove change on other workflows | |
- '.github/workflows/test_environment.yml' | |
workflow_dispatch: | |
concurrency: | |
group: ci-${{github.workflow}}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
container: ardupilot/ardupilot-dev-${{ matrix.toolchain }}:v0.1.0 | |
strategy: | |
fail-fast: false # don't cancel if a job from the matrix fails | |
matrix: | |
toolchain: [ | |
base, # GCC | |
] | |
steps: | |
# git checkout the PR | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: build plane ${{ matrix.toolchain }} | |
shell: bash | |
run: | | |
git config --global --add safe.directory ${GITHUB_WORKSPACE} | |
if [[ ${{ matrix.toolchain }} == "clang" ]]; then | |
export CC=clang | |
export CXX=clang++ | |
fi | |
PATH="/github/home/.local/bin:$PATH" | |
./waf configure --board sitl | |
./waf build --target bin/arduplane | |
ccache -s | |
ccache -z |