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
940 B
41 lines
940 B
name: Build Tests |
|
|
|
on: |
|
push: |
|
branches: |
|
- 'master' |
|
pull_request: |
|
branches: |
|
- '*' |
|
|
|
jobs: |
|
build: |
|
runs-on: ubuntu-latest |
|
strategy: |
|
matrix: |
|
container: [ |
|
"px4io/px4-dev-base-bionic:2020-03-28", |
|
"px4io/px4-dev-base-focal:2020-03-28" |
|
] |
|
container: ${{ matrix.container }} |
|
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
|
|
|