Skip to content

Carbonix Build

Carbonix Build #4

Workflow file for this run

name: Carbonix ArduPilot Build and Release
on: [push, pull_request, workflow_dispatch]
concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-release:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: test install environment
timeout-minutes: 30
env:
DISABLE_MAVNATIVE: True
DEBIAN_FRONTEND: noninteractive
TZ: Europe/Paris
SKIP_AP_GIT_CHECK: 1
shell: 'script -q -e -c "bash {0}"'
run: |
PATH="/github/home/.local/bin:$PATH"
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
sed -i 's/\$EUID/\$ID/' Tools/environment_install/install-prereqs-ubuntu.sh
sed -i 's/sudo usermod/\#sudo usermod/' Tools/environment_install/install-prereqs-ubuntu.sh
sed -i 's/sudo usermod/\#sudo usermod/' Tools/environment_install/install-prereqs-arch.sh
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
Tools/environment_install/install-prereqs-ubuntu.sh -qy
Tools/environment_install/install-prereqs-ubuntu.sh -qy
cp /etc/skel/.bashrc /root
cp /etc/skel/.bashrc /github/home
Tools/environment_install/install-prereqs-arch.sh -qy
esac
- name: Build for STIL
env:
DISABLE_MAVNATIVE: True
DEBIAN_FRONTEND: noninteractive
TZ: Europe/Paris
shell: 'script -q -e -c "bash {0}"'
run: |
source ~/.bashrc
./waf configure
./waf plane
- name: Build for CubeOrange
env:
DISABLE_MAVNATIVE: True
DEBIAN_FRONTEND: noninteractive
TZ: Europe/Paris
shell: 'script -q -e -c "bash {0}"'
run: |
source ~/.bashrc
./waf configure --board CubeOrange
./waf plane
- name: Build for CarbonixF405
env:
DISABLE_MAVNATIVE: True
DEBIAN_FRONTEND: noninteractive
TZ: Europe/Paris
shell: 'script -q -e -c "bash {0}"'
run: |
source ~/.bashrc
./waf configure --board CarbonixF405
./waf AP_Periph
- name: Create Release Zip
run: |
cd carbopilot_V2/build/CubeOrange
zip -r CubeOrange_binaries.zip .
mv CubeOrange_binaries.zip $GITHUB_WORKSPACE
cd ../CarbonixF405
zip -r CarbonixF405_binaries.zip .
mv CarbonixF405_binaries.zip $GITHUB_WORKSPACE
- name: Upload Release Artifacts
uses: actions/upload-artifact@v2
with:
name: ArduPilot-Binaries
path: |
$GITHUB_WORKSPACE/CubeOrange_binaries.zip
$GITHUB_WORKSPACE/CarbonixF405_binaries.zip