Update Ubuntu18.04-build.yaml #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
sudo DEBIAN_FRONTEND=noninteractive sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' && sudo apt-get update -y && sudo apt-get install -y | |
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 |