This repository holds reusable workflows for CI of the ros2_control framework as well as weekly updated docker images for building the ros2_control stack on different platforms, supporting all current releases as by REP-2000. They are automatically built and pushed to the GitHub Container Registry (ghcr.io) and can be used as base images for building the ros2_control stack.
Within this repo the full ros2_control stack is built and tested once per day.
| Platform | Build status |
|---|---|
| Ubuntu | |
| Debian | |
| RHEL | |
| Windows | |
| macOS |
The reusable workflow reusable-ros-tooling-macos-build.yml builds on macOS with binaries from RoboStack (conda channel robostack-<ros_distro>, osx-arm64 or osx-64 on intel runners), managed by pixi. The macOS stack build runs for rolling, lyrical, jazzy and humble on macos-15.
The checked out repository (or the target_workspace .repos file) and the optional upstream_workspace .repos file are built from source; every other dependency declared in their package.xml files is installed from RoboStack.
Dependencies are resolved with RoboStack's rosdep mapping and .github/scripts/robostack_deps.py, so packages built from source are never installed as binaries and no rosdep skip-keys have to be maintained.
Keys missing in RoboStack's mapping are added in .github/scripts/robostack_overrides.yaml.
Like the Ubuntu workflows, a failing scheduled build opens (or updates) an issue CI build job <ros_distro>/macos failed!.
With downstream_workspace: <file>.repos, the packages of that .repos file are imported next to the checked out repository and built together with it, e.g. to check that downstream packages still build.
Semi-binary build of a downstream repository, building the packages of my_repo.rolling.repos from source as well:
jobs:
binary-macos:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-ros-tooling-macos-build.yml@master
with:
ros_distro: rolling
upstream_workspace: my_repo.rolling.reposA failing scheduled build of the Ubuntu, Debian (reusable-debian-build.yml), RHEL (reusable-rhel-binary-build.yml) and Windows (reusable-ros-tooling-win-build.yml) workflows opens (or updates) an issue CI build job <ros_distro>/<platform> failed!, with <platform> being the ros repo (e.g. testing) on Ubuntu, debian, rhel or windows.
The reusable workflow reusable-ros-tooling-win-build.yml builds on Windows with binaries from RoboStack (conda channel robostack-<ros_distro>), managed by pixi. The Windows stack build runs for rolling, lyrical, jazzy and humble.
The checked out repository (or the target_workspace .repos file) and the optional upstream_workspace .repos file are built from source; every other dependency declared in their package.xml files is installed from RoboStack.
Dependencies are resolved with RoboStack's rosdep mapping and .github/scripts/robostack_deps.py, so packages built from source are never installed as binaries and no rosdep skip-keys have to be maintained.
Keys missing in RoboStack's mapping are added in .github/scripts/robostack_overrides.yaml.
With downstream_workspace: <file>.repos, the packages of that .repos file are imported next to the checked out repository and built together with it, e.g. to check that downstream packages still build.
Semi-binary build of a downstream repository, building the packages of my_repo.rolling.repos from source as well:
jobs:
binary-windows:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-ros-tooling-win-build.yml@master
with:
ros_distro: rolling
upstream_workspace: my_repo.rolling.reposThe reusable Debian and RHEL workflows take an optional downstream_workspace input: a .repos file of the checked out repository whose packages are imported next to it and built together with it, but not tested. Use it to check that a change doesn't break the packages depending on it, e.g. in ros2_control_cmake:
jobs:
debian-downstream:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-debian-build.yml@master
with:
ros_distro: rolling
downstream_workspace: ros_controls.rolling.reposWe thrive to make the rolling development version of the ros2_control stack compatible with earlier releases of ROS 2. This is done by building the rolling version of the stack from source with the earlier releases of ROS 2.
Extension of the official OSRF docker images, but with versions for ros2(main) and ros2-testing binaries.
This is a sample Dockerfile that show ros2 installed on almalinux based on the binary installation instructions at docs.ros.org. The most recent public build can be found with the docker tag: ghcr.io/ros-controls/ros:<ROS_DISTRO>-rhel where <ROS_DISTRO> is replaced with the ros distribution you are targeting.
The image tries to emulate the official ros2 images but on alma (downstream RHEL) linux. Therefore a few extra packages can be found within this repo that are not mentioned at the above link, i.e. colcon, etc.
Provides docker images for building ros2_control on debian.
Pull and run the images with:
docker pull ghcr.io/ros-controls/ros:rolling-debian
docker run -it ghcr.io/ros-controls/ros:rolling-debian bashTo manually build them, you can use the following commands:
docker build -t ros2_debian11_humble . -f Dockerfile.debian11 --build-arg ROS_DISTRO=humble
docker build -t ros2_debian12_jazzy . -f Dockerfile.debian12 --build-arg ROS_DISTRO=jazzy
docker build -t ros2_debian12_rolling . -f Dockerfile.debian12 --build-arg ROS_DISTRO=rollingDebian 11 (bullseye, used for humble) is end of life, so Dockerfile.debian11 installs its packages from archive.debian.org.