-
Notifications
You must be signed in to change notification settings - Fork 16
56 lines (54 loc) · 1.49 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v1
- name: submodule update
run: git submodule update --init --recursive
- name: Clone yaml cpp
run: git clone https://github.com/jbeder/yaml-cpp.git /yaml-cpp
- name: Install yaml-cpp
working-directory: /yaml-cpp
run: |
mkdir build
cd build
cmake ..
make
make install
- name: Install latest mavlink
run: git clone --depth 1 https://github.com/mavlink/c_library_v2.git /usr/local/include/mavlink/v2.0 && rm -rf /usr/local/include/mavlink/v2.0/.git
- name: Clone PX4
run: git clone https://github.com/PX4/PX4-Autopilot.git /PX4-Autopilot
- name: Build PX4 SITL Gazebo
working-directory: /PX4-Autopilot
run: |
make submodulesupdate
DONT_RUN=1 make px4_sitl gazebo-classic_iris
- name: Cmake Build
env:
PX4_ROOT: /PX4-Autopilot
run: |
mkdir build
cd build
cmake ..
make
# - name: Unit Tests
# working-directory: build
# run: |
# cmake -DENABLE_UNIT_TESTS=On ..
# make
# make test