-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (42 loc) · 2.01 KB
/
catkin_build.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
name: catkin_build
on: [push]
defaults:
run:
shell: bash
jobs:
catkin_build:
runs-on: ubuntu-20.04
timeout-minutes: 8
container:
image: ros:noetic
steps:
# 1. Install basic requirements
- run: apt-get update && apt-get install -y git
- run: if [[ "$ROS_DISTRO" = "noetic" ]] ; then apt-get install -y python3-pip ros-noetic-catkin python3-catkin-tools ; fi
- run: pip install setuptools==68.0.0 importlib-metadata==8.2.0 # hack because there is an issue on >=71.0.0 https://github.com/pypa/setuptools/issues/4478
# 2. Checkout repo with submodules
- uses: actions/checkout@v2
with:
path: catkin_ws/src/innopolis_vtol_dynamics
submodules: recursive
# 3. Install requirements
- name: Install innopolis_vtol_dynamics requirements
run: ./catkin_ws/src/innopolis_vtol_dynamics/uav_dynamics/uav_hitl_dynamics/install_requirements.sh
- name: Install uavcan_communicator requirements
run: |
cd catkin_ws/src/innopolis_vtol_dynamics/communicators/uavcan_communicator && \
./scripts/install_requirements.sh && \
./scripts/install_libuavcan.sh
- name: Install cyphal_communicator requirements
run: ./catkin_ws/src/innopolis_vtol_dynamics/communicators/cyphal_communicator/install_requirements.sh
- name: Install inno-sim-interface requirements
run: |
sudo apt-get install -y ros-noetic-rosauth && \
sudo apt-get install -y python-protobuf && \
pip install bson pymongo Pillow twisted
# 4. Build
- name: catkin build
run: |
source /opt/ros/noetic/setup.bash && \
cd catkin_ws && \
catkin build