forked from open-rmf/rmf_demos
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (43 loc) · 1.52 KB
/
build.yaml
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
name: build
on: [push, pull_request]
jobs:
ros2:
runs-on: ubuntu-20.04
container:
image: docker://ros:galactic-ros-base-focal
steps:
- name: non-ros-deps
run: |
sudo apt update
sudo apt install -y wget
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget https://packages.osrfoundation.org/gazebo.key -O - | apt-key add -
sudo apt update && sudo apt install \
git cmake python3-vcstool curl \
qt5-default \
python3-shapely python3-yaml python3-requests python3-pip -y
pip3 install flask-socketio
- name: create-ws
run: |
mkdir -p rmf_demos_ws/src
- name: checkout # This will check out the current rmf_demos branch for build tests
uses: actions/checkout@v2
with:
path: rmf_demos_ws/src/demonstrations/rmf_demos/
- name: workspace
run: |
cd rmf_demos_ws
wget https://raw.githubusercontent.com/open-rmf/rmf/main/rmf.repos
vcs import src < rmf.repos --skip-existing
- name: ros-deps
run: |
export DEBIAN_FRONTEND=noninteractive
cd rmf_demos_ws
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro galactic -yr
- name: build
shell: bash
run: |
cd rmf_demos_ws
source /opt/ros/galactic/setup.bash
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release -DNO_DOWNLOAD_MODELS=True