px4-firmware/.github/workflows/build_tests.yml

42 lines
916 B
YAML
Raw Normal View History

name: Build Tests
on:
push:
branches:
- 'master'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ubuntu_release: [
bionic,
focal
]
2020-04-02 07:23:40 -03:00
container: px4io/px4-dev-base-${{ matrix.ubuntu_release }}:2020-04-01
steps:
- uses: actions/checkout@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
- name: check_format
env:
CI: true
run: make check_format
2020-03-10 18:33:46 -03:00
- uses: actions/cache@v1.1.0
id: ccache-persistence
with:
path: ~/.ccache
key: ccache-main-tests
restore-keys: |
ccache-main-tests
- name: setup ccache
run: mkdir -p ~/.ccache && echo "max_size = 300M" > ~/.ccache/ccache.conf && ccache -z && ccache -s
- name: main tests
run: make tests
2020-03-10 18:33:46 -03:00
- name: ccache post-run
run: ccache -s && ccache -z