Skip to content

AP_TECS: add ground slope estimate for landing on sloped surfaces #3

AP_TECS: add ground slope estimate for landing on sloped surfaces

AP_TECS: add ground slope estimate for landing on sloped surfaces #3

Workflow file for this run

name: Build KHA Targets
on: [push, workflow_dispatch]
# paths:
# - "*"
# - "!README.md" <-- don't rebuild on doc change
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.3
strategy:
fail-fast: false # don't cancel if a job from the matrix fails
matrix:
config: [
[sitl, plane],
[CubeOrange-KHA, plane],
[kha_adsb, AP_Periph],
[kha_distro, AP_Periph],
[kha_eth, AP_Periph],
[kha_motor, AP_Periph],
[kha_pitot, AP_Periph],
]
toolchain: [
chibios,
]
gcc: [10]
steps:
# git checkout the PR
- uses: actions/checkout@v4
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-${{matrix.config}}-${{ matrix.toolchain }}-${{ matrix.gcc }}-${{steps.ccache_cache_timestamp.outputs.timestamp}}
restore-keys: ${{github.workflow}}-ccache-${{matrix.config}}-${{ matrix.toolchain }}-${{ matrix.gcc }} # restore ccache from either previous build on this branch or on master
- name: setup ccache
run: |
. .github/workflows/ccache.env
- name: Build KHA Target ${{matrix.config[0]}} as ${{matrix.config[1]}}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
PATH="/usr/lib/ccache:/opt/gcc-arm-none-eabi-${{matrix.gcc}}/bin:$PATH"
PATH="/github/home/.local/bin:$PATH"
./waf configure --board ${{matrix.config[0]}}
./waf ${{matrix.config[1]}}
ccache -s
ccache -z
- name: Get short SHA
id: sha
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
- name: Upload build target artifacts
uses: actions/upload-artifact@v3
with:
name: ${{matrix.config[0]}}-${{steps.sha.outputs.sha8}}
path: ${{github.workspace}}/build/${{matrix.config[0]}}/bin/*.*
retention-days: 90
- name: Upload params
uses: actions/upload-artifact@v3
with:
name: Params
path: ${{github.workspace}}/kha/params/*.*
retention-days: 90
- name: Upload scripts
uses: actions/upload-artifact@v3
with:
name: Scripts
path: ${{github.workspace}}/scripts/*.*
retention-days: 90