From eb407cb6358ce42debcd53fada51bc58fe497ef3 Mon Sep 17 00:00:00 2001 From: Hyungyu Kim Date: Fri, 20 Jun 2025 08:53:50 +0900 Subject: [PATCH] add rosdep ci Signed-off-by: Hyungyu Kim --- .github/workflows/ros-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ros-ci.yml b/.github/workflows/ros-ci.yml index 48662bb..026afce 100644 --- a/.github/workflows/ros-ci.yml +++ b/.github/workflows/ros-ci.yml @@ -49,6 +49,23 @@ jobs: with: required-ros-distributions: ${{ matrix.ros_distribution }} + - name: Check and Install ROS dependencies + shell: bash + run: | + set -e + source /opt/ros/${{ matrix.ros_distribution }}/setup.bash + echo "--- Updating rosdep definitions ---" + rosdep update + echo "--- Installing system dependencies for ROS 2 ${{ matrix.ros_distribution }} ---" + rosdep install --from-paths ros_ws/src --ignore-src -y -r --rosdistro ${{ matrix.ros_distribution }} + echo "--- Performing rosdep check for ROS 2 ${{ matrix.ros_distribution }} ---" + if rosdep check --from-paths ros_ws/src --ignore-src --rosdistro ${{ matrix.ros_distribution }}; then + echo "--- rosdep check passed ---" + else + echo "--- rosdep check failed: Missing system dependencies or unresolvable keys. ---" + exit 1 + fi + - name: Build and Test uses: ros-tooling/action-ros-ci@v0.3 with: