ci: Add CI pipeline for ROS 2 Humble and Iron #2
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: Build ROS 2 workspace | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
- '**.png' | |
- '**.rviz' | |
schedule: | |
- cron: "0 12 1 * *" | |
workflow_dispatch: | |
jobs: | |
build-workspace: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
docker_image: ['ros:humble-ros-base', 'ros:iron-ros-base'] | |
container: | |
image: ${{ matrix.docker_image }} | |
steps: | |
- name: Clone myactuator_rmd | |
run: | | |
mkdir -p ~/colcon_ws/src | |
cd ~/colcon_ws/src | |
git clone https://github.com/2b-t/myactuator_rmd.git | |
git clone https://github.com/2b-t/myactuator_rmd_ros.git | |
- name: Install dependencies | |
run: | | |
cd ~/colcon_ws | |
. /ros_entrypoint.sh | |
rosdep install --from-paths src/ --ignore-src -r -y | |
- name: Build workspace | |
run: | | |
cd ~/colcon_ws | |
. /ros_entrypoint.sh | |
colcon build --symlink-install | |