forked from PX4/PX4-SITL_gazebo-classic
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 930 Bytes
/
build_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build Tests
on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container:
- 'px4io/px4-dev-simulation-focal:2021-05-31' # Gazebo 11
- 'px4io/px4-dev-simulation-bionic:2021-05-31' # Gazebo 9
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v1
- name: submodule update
run: git submodule update --init --recursive
- name: Install latest mavlink
run: git clone --depth 1 https://github.com/mavlink/c_library_v2.git /usr/local/include/mavlink && rm -rf /usr/local/include/mavlink/.git
- name: Cmake Build
run: |
mkdir build
cd build
cmake ..
make
- name: Unit Tests
working-directory: build
run: |
cmake -DENABLE_UNIT_TESTS=On ..
make
make test