mirror of
https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git
synced 2025-09-15 12:59:07 +08:00
Merge pull request #56 from ROBOTIS-GIT/feature-rosdep-ci
Add rosdep check ci
This commit is contained in:
commit
b60833d022
17
.github/workflows/ros-ci.yaml
vendored
17
.github/workflows/ros-ci.yaml
vendored
@ -49,6 +49,23 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
required-ros-distributions: ${{ matrix.ros_distribution }}
|
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
|
- name: Build and Test
|
||||||
uses: ros-tooling/action-ros-ci@v0.3
|
uses: ros-tooling/action-ros-ci@v0.3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user