You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
916 B
41 lines
916 B
name: Build Tests |
|
|
|
on: |
|
push: |
|
branches: |
|
- 'master' |
|
pull_request: |
|
branches: |
|
- '*' |
|
|
|
jobs: |
|
build: |
|
runs-on: ubuntu-latest |
|
strategy: |
|
matrix: |
|
ubuntu_release: [ |
|
bionic, |
|
focal |
|
] |
|
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 |
|
- 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 |
|
- name: ccache post-run |
|
run: ccache -s && ccache -z
|
|
|