Skip to content

Commit

Permalink
ros2: Updated CI
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Oct 14, 2023
1 parent dfdf707 commit 8ae4e9e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/docker-ros2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
docker_tag: [humble, humble-latest]
docker_tag: [humble, humble-latest, iron, iron-latest]
include:
- docker_tag: humble
docker_path: 'humble'
Expand All @@ -23,6 +23,14 @@ jobs:
docker_platforms: |
linux/amd64
linux/arm64
- docker_tag: iron
docker_path: 'iron'
docker_platforms: |
linux/amd64
- docker_tag: iron-latest
docker_path: 'iron/latest'
docker_platforms: |
linux/amd64
steps:
-
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/ros2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
ros_distro: [foxy, humble]
ros_distro: [foxy, humble, iron]
include:
- ros_distro: 'foxy'
os: ubuntu-20.04
- ros_distro: 'humble'
os: ubuntu-22.04
- ros_distro: 'iron'
os: ubuntu-22.04

steps:
- uses: ros-tooling/setup-ros@v0.6
Expand All @@ -36,8 +38,8 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install ros-${{ matrix.ros_distro }}-rtabmap ros-${{ matrix.ros_distro }}-nav2-msgs ros-${{ matrix.ros_distro }}-pcl-ros
sudo apt-get -y remove ros-${{ matrix.ros_distro }}-rtabmap
sudo apt-get -y install ros-${{ matrix.ros_distro }}-rtabmap
sudo apt-get -y remove ros-${{ matrix.ros_distro }}-rtabmap*
- name: Setup ros2 workspace
run: |
Expand All @@ -59,5 +61,6 @@ jobs:
run: |
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
cd ${{github.workspace}}/ros2_ws
rosdep update
rosdep install --from-paths src --ignore-src -r -y
colcon build --event-handlers console_direct+
7 changes: 2 additions & 5 deletions docker/humble/latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
FROM introlab3it/rtabmap:22.04

RUN apt-get update && apt-get install -y \
ros-humble-pcl-ros \
&& rm -rf /var/lib/apt/lists/

RUN source /ros_entrypoint.sh && \
mkdir -p ros2_ws/src && \
cd ros2_ws/src
Expand All @@ -13,7 +9,8 @@ COPY . ros2_ws/src/rtabmap_ros
RUN source /ros_entrypoint.sh && \
cd ros2_ws && \
export MAKEFLAGS="-j1" && \
apt update && apt install -y ros-humble-pcl-ros && \
rosdep update && \
rosdep install --from-paths src --ignore-src -r -y && \
colcon build --event-handlers console_direct+ --install-base /opt/ros/humble --merge-install --cmake-args -DRTABMAP_SYNC_MULTI_RGBD=ON -DCMAKE_BUILD_TYPE=Release && \
cd && \
rm -rf ros2_ws
7 changes: 2 additions & 5 deletions docker/iron/latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
FROM introlab3it/rtabmap:jammy-iron

RUN apt-get update && apt-get install -y \
ros-iron-pcl-ros \
&& rm -rf /var/lib/apt/lists/

RUN source /ros_entrypoint.sh && \
mkdir -p ros2_ws/src && \
cd ros2_ws/src
Expand All @@ -13,7 +9,8 @@ COPY . ros2_ws/src/rtabmap_ros
RUN source /ros_entrypoint.sh && \
cd ros2_ws && \
export MAKEFLAGS="-j1" && \
apt update && apt install -y ros-iron-pcl-ros && \
rosdep update && \
rosdep install --from-paths src --ignore-src -r -y && \
colcon build --event-handlers console_direct+ --install-base /opt/ros/iron --merge-install --cmake-args -DRTABMAP_SYNC_MULTI_RGBD=ON -DCMAKE_BUILD_TYPE=Release && \
cd && \
rm -rf ros2_ws

0 comments on commit 8ae4e9e

Please sign in to comment.