Skip to content

Commit 91492d7

Browse files
authored
Merge pull request #89 from ROBOTIS-GIT/feature-rosdep-ci
add rosdep check ci
2 parents a79b0cf + 728927b commit 91492d7

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/ros-ci.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
ros_distribution:
2020
- humble
2121
- jazzy
22-
- rolling
22+
# - rolling
2323
include:
2424
# ROS 2 Humble Hawksbill
2525
- docker_image: ubuntu:jammy
@@ -30,9 +30,9 @@ jobs:
3030
ros_distribution: jazzy
3131
ros_version: 2
3232
# ROS 2 Rolling Ridley
33-
- docker_image: ubuntu:noble
34-
ros_distribution: rolling
35-
ros_version: 2
33+
# - docker_image: ubuntu:noble
34+
# ros_distribution: rolling
35+
# ros_version: 2
3636
container:
3737
image: ${{ matrix.docker_image }}
3838
steps:
@@ -49,6 +49,23 @@ jobs:
4949
with:
5050
required-ros-distributions: ${{ matrix.ros_distribution }}
5151

52+
- name: Check and Install ROS dependencies
53+
shell: bash
54+
run: |
55+
set -e
56+
source /opt/ros/${{ matrix.ros_distribution }}/setup.bash
57+
echo "--- Updating rosdep definitions ---"
58+
rosdep update
59+
echo "--- Installing system dependencies for ROS 2 ${{ matrix.ros_distribution }} ---"
60+
rosdep install --from-paths ros_ws/src --ignore-src -y -r --rosdistro ${{ matrix.ros_distribution }}
61+
echo "--- Performing rosdep check for ROS 2 ${{ matrix.ros_distribution }} ---"
62+
if rosdep check --from-paths ros_ws/src --ignore-src --rosdistro ${{ matrix.ros_distribution }}; then
63+
echo "--- rosdep check passed ---"
64+
else
65+
echo "--- rosdep check failed: Missing system dependencies or unresolvable keys. ---"
66+
exit 1
67+
fi
68+
5269
- name: Build and Test
5370
uses: ros-tooling/action-ros-ci@v0.3
5471

0 commit comments

Comments
 (0)