2019-12-17 04:34:22 -04:00
|
|
|
name: Build Tests
|
|
|
|
|
2020-01-28 15:37:06 -04:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '*'
|
2019-12-17 04:34:22 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2020-03-29 11:36:20 -03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-03-29 15:44:07 -03:00
|
|
|
ubuntu_release: [
|
|
|
|
bionic,
|
|
|
|
focal
|
2020-03-29 11:36:20 -03:00
|
|
|
]
|
2020-04-02 07:23:40 -03:00
|
|
|
container: px4io/px4-dev-base-${{ matrix.ubuntu_release }}:2020-04-01
|
2019-12-17 04:34:22 -04:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2019-12-26 07:54:56 -04:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.ACCESS_TOKEN }}
|
2019-12-17 04:34:22 -04:00
|
|
|
- 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
|
2019-12-17 04:34:22 -04:00
|
|
|
- name: main tests
|
|
|
|
run: make tests
|
2020-03-10 18:33:46 -03:00
|
|
|
- name: ccache post-run
|
|
|
|
run: ccache -s && ccache -z
|