Skip to content

Set up CI for Jazzy support verification #2

Set up CI for Jazzy support verification

Set up CI for Jazzy support verification #2

Workflow file for this run

name: ROS 2 CI (Multi-Distribution)
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- ros_distro: humble
ubuntu_version: ubuntu-22.04
- ros_distro: iron
ubuntu_version: ubuntu-22.04
- ros_distro: jazzy
ubuntu_version: ubuntu-24.04
- ros_distro: rolling
ubuntu_version: ubuntu-24.04
container:
image: ros:${{ matrix.ros_distro }}-ros-base
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: src/qt_rviz2_tutorial
- name: Install dependencies
run: |
apt-get update
apt-get install -y \
python3-colcon-common-extensions \
python3-rosdep \
qtbase5-dev \
qtdeclarative5-dev \
libqt5svg5-dev
- name: Initialize rosdep
run: |
rosdep init || true
rosdep update
- name: Install package dependencies
run: |
. /opt/ros/${{ matrix.ros_distro }}/setup.sh
rosdep install --from-paths src --ignore-src -r -y
- name: Build workspace
run: |
. /opt/ros/${{ matrix.ros_distro }}/setup.sh
colcon build --symlink-install \
--cmake-args -DCMAKE_BUILD_TYPE=Release \
--event-handlers console_direct+
- name: Run tests
run: |
. /opt/ros/${{ matrix.ros_distro }}/setup.sh
. install/setup.sh
colcon test --event-handlers console_direct+
colcon test-result --verbose