-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.4 KB
/
ci.yml
File metadata and controls
54 lines (45 loc) · 1.4 KB
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
name: ROS CI
on: [pull_request]
jobs:
build-native:
runs-on: ubuntu-20.04
container:
image: swarmus/ros-noetic-desktop-full
steps:
- name: Create catkin_ws
run: |
mkdir -p catkin_ws/src
cd catkin_ws
. /opt/ros/$ROS_DISTRO/setup.sh
catkin_make_isolated
- name: Checkout repository
uses: actions/checkout@v2
with:
path: 'catkin_ws/src/SwarmUS-ROS'
- name: Checkout submodules
run: git submodule update --init --recursive
working-directory: 'catkin_ws/src/SwarmUS-ROS'
- name: Check Format
run: |
python src/SwarmUS-ROS/tools/contrib/run-clang-format.py --recursive --style=file src/SwarmUS-ROS/src/
working-directory: 'catkin_ws'
- name: Install ROS dependencies
run: |
apt-get install -y python3-rosdep2
rosdep update
apt update
rosdep install --from-paths src --ignore-src -r -y
working-directory: 'catkin_ws'
- name: Install HiveMindBridge dependency
run: |
mkdir build
cd build
cmake ..
make -j
make install
working-directory: 'catkin_ws/src/SwarmUS-ROS/contrib/HiveMindBridge'
- name: Build
run: |
. ./devel_isolated/setup.sh
catkin_make_isolated
working-directory: 'catkin_ws'