Skip to content

Use CMake to read env ROS_DISTRO and save in ambf_ral_config.h so we … #25

Use CMake to read env ROS_DISTRO and save in ambf_ral_config.h so we …

Use CMake to read env ROS_DISTRO and save in ambf_ral_config.h so we … #25

name: Ubuntu 20.04 ROS Noetic
on:
push:
branches: [ ros2-support ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build_docker:
runs-on: ubuntu-20.04
container:
image: ubuntu:focal
steps:
- name: Install ROS
uses: ros-tooling/[email protected]
with:
required-ros-distributions: noetic
- name: Install missing debian packages
shell: bash
run: |
sudo apt-get install --yes python3-vcstool python3-catkin-tools python3-osrf-pycommon libasound2-dev libgl1-mesa-dev xorg-dev libusb-1.0-0-dev
- name: Create Workspace
shell: bash
run: |
source /opt/ros/noetic/setup.bash
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws
catkin init
catkin build
- name: Retrieve Code
shell: bash
run: |
cd ~/catkin_ws/src
vcs import --input https://raw.githubusercontent.com/LauraConnolly/ambf/ros2-support/ambf.repos
- name: Compile
shell: bash
run: |
source ~/catkin_ws/devel/setup.bash
cd ~/catkin_ws
catkin build --summary