-
Notifications
You must be signed in to change notification settings - Fork 1
103 lines (92 loc) · 2.61 KB
/
ci.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-noetic:
runs-on: ubuntu-20.04
container:
image: swarmus/embedded
steps:
- uses: actions/checkout@v2
with:
path: 'catkin_ws/src/HiveMind'
- name: build
run: |
cd catkin_ws
. /opt/ros/$ROS_DISTRO/setup.sh
rosdep update
apt update
rosdep install --from-paths src --ignore-src -r -y
catkin_make -DENABLE_ERROR_ON_MISSING_TOOL=ON -DENABLE_WARNINGS_AS_ERROR=ON -DENABLE_WARNINGS=ON -DENABLE_CLANG_TIDY_CHECK=ON -DENABLE_TESTS=ON
# Tests, check-format and doc are run on native build
- name: tests
run: |
cd catkin_ws
. /opt/ros/$ROS_DISTRO/setup.sh
. ./devel/setup.sh
cd build/HiveMind
ctest -V
- name: check-format
run: |
cd catkin_ws
. /opt/ros/$ROS_DISTRO/setup.sh
. ./devel/setup.sh
catkin_make check-format
# Verifies that the doc is built
- name: doc
run: |
cd catkin_ws
. /opt/ros/$ROS_DISTRO/setup.sh
. ./devel/setup.sh
catkin_make doc
build-stm32f429zi:
runs-on: ubuntu-latest
container:
image: swarmus/embedded
steps:
- uses: actions/checkout@v2
- name: prepare
run: |
mkdir -p build
cd build
cmake -D CMAKE_TOOLCHAIN_FILE=../cmake/stm32_f429zi_gcc.cmake -DENABLE_ERROR_ON_MISSING_TOOL=ON -DENABLE_WARNINGS_AS_ERROR=ON -DENABLE_WARNINGS=ON -DENABLE_CLANG_TIDY_CHECK=ON ..
- name: build
run: |
cd build
make -j
build-stm32h735gz:
runs-on: ubuntu-latest
container:
image: swarmus/embedded
steps:
- uses: actions/checkout@v2
- name: prepare
run: |
mkdir -p build
cd build
cmake -D CMAKE_TOOLCHAIN_FILE=../cmake/stm32_h735zg_gcc.cmake -DENABLE_ERROR_ON_MISSING_TOOL=ON -DENABLE_WARNINGS_AS_ERROR=ON -DENABLE_WARNINGS=ON -DENABLE_CLANG_TIDY_CHECK=ON ..
- name: build
run: |
cd build
make -j
# Verfies that we can still build on melodic
build-melodic:
runs-on: ubuntu-20.04
container:
# Container of ros with ubuntu 18.04
image: swarmus/ros-melodic
steps:
- uses: actions/checkout@v2
with:
path: 'catkin_ws/src/HiveMind'
- name: build
run: |
cd catkin_ws
. /opt/ros/$ROS_DISTRO/setup.sh
rosdep update
apt update
rosdep install --from-paths src --ignore-src -r -y
catkin_make