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

36 lines
794 B
YAML
Raw Normal View History

name: Build Tests
on:
push:
branches:
- 'master'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
2020-03-16 12:55:08 -03:00
container: px4io/px4-dev-base-bionic:2020-03-16
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