-
Notifications
You must be signed in to change notification settings - Fork 42
54 lines (51 loc) · 1.67 KB
/
Ubuntu18.04-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
46
47
48
49
50
51
52
53
54
name: Ubuntu18.04 Melodic
on:
push:
branches:
- main
paths-ignore:
- '**/README.md'
pull_request:
branches:
- main
paths-ignore:
- '**/README.md'
jobs:
build:
runs-on: ubuntu-latest
container: ubuntu:18.04
env:
ROS_CI_DESKTOP: "`lsb_release -cs`"
ROS_DISTRO: melodic
steps:
- uses: actions/checkout@v2
with:
submodule: recursive
- name: Install sudo and software-properties-common
run: |
apt-get update
apt-get install -y sudo software-properties-common
- name: Install ROS Melodic
run: |
echo 12 | sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt install -y curl
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo apt update
sudo apt install -y ros-melodic-desktop-full
source /opt/ros/${ROS_DISTRO}/setup.bash
- name: Install ROS packages with rosdep
run: |
sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential
sudo apt install python-rosdep
sudo rosdep init
rosdep update
- name: Install dependencies
run: |
sudo apt install -y ros-${ROS_DISTRO}-octomap* ros-${ROS_DISTRO}-mavros* ros-${ROS_DISTRO}-vision-msgs
- name: catkin make
run: |
mkdir -p ~/catkin_ws/src
ln -s $GITHUB_WORKSPACE ~/catkin_ws/src/
cd ~/catkin_ws
source /opt/ros/${ROS_DISTRO}/setup.bash
catkin_make