Merge branch 'ros2-support' of github.com:LauraConnolly/AMBF into ros… #3
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: Ubuntu 22.04 ROS Humble | |
on: | |
push: | |
branches: [ ros2-support ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build_docker: | |
runs-on: ubuntu-22.04 | |
container: | |
image: ubuntu:jammy | |
steps: | |
- name: Install ROS | |
uses: ros-tooling/[email protected] | |
with: | |
required-ros-distributions: humble | |
- name: Install missing debian packages | |
shell: bash | |
run: | | |
sudo apt-get install --yes python3-vcstool python3-colcon-common-extensions libasound2-dev libgl1-mesa-dev xorg-dev libusb-1.0-0-dev | |
- name: Create Workspace | |
shell: bash | |
run: | | |
source /opt/ros/humble/setup.bash | |
mkdir -p ~/ros2_ws/src | |
- name: Retrieve Code | |
shell: bash | |
run: | | |
cd ~/ros2_ws/src | |
vcs import --input https://raw.githubusercontent.com/LauraConnolly/ambf/ros2-support/ambf.repos | |
- name: Compile | |
shell: bash | |
run: | | |
cd ~/ros2_ws | |
colcon build |