Skip to content

Update Ubuntu18.04-build.yaml #28

Update Ubuntu18.04-build.yaml

Update Ubuntu18.04-build.yaml #28

name: Ubuntu20.04 Noetic
on:
push:
branches:
- main
paths-ignore:
- '**/README.md'
pull_request:
branches:
- main
paths-ignore:
- '**/README.md'
jobs:
build:
runs-on: ubuntu-20.04
env:
ROS_CI_DESKTOP: "`lsb_release -cs`"
ROS_DISTRO: noetic
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install ROS Noetic
run: |
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 curl
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo apt update
sudo apt install ros-noetic-desktop-full
source /opt/ros/${ROS_DISTRO}/setup.bash
- name: Install ROS packages with rosdep
run: |
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
sudo apt install python3-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