@@ -64,11 +64,27 @@ jobs:
6464 cargo \
6565 git \
6666 python3-colcon-common-extensions \
67- python3-rosdep
67+ python3-rosdep \
68+ python3-vcs2l
6869
6970 - name : Checkout repository
7071 uses : actions/checkout@v6
7172
73+ - name : Import action dependency sources
74+ run : |
75+ cat > action-dependency-sources.repos <<EOF
76+ repositories:
77+ rcl_interfaces:
78+ type: git
79+ url: https://github.com/ros2/rcl_interfaces.git
80+ version: ${{ matrix.ros_distro }}
81+ unique_identifier_msgs:
82+ type: git
83+ url: https://github.com/ros2/unique_identifier_msgs.git
84+ version: ${{ matrix.ros_distro }}
85+ EOF
86+ vcs import --shallow . < action-dependency-sources.repos
87+
7288 - name : Install package dependencies
7389 run : |
7490 if [ ! -e /etc/ros/rosdep/sources.list.d/20-default.list ]; then
8197 shell : bash
8298 run : |
8399 source /opt/ros/${{ matrix.ros_distro }}/setup.bash
84- colcon build --packages-up-to rosidl_generator_rs_tests --event-handlers console_direct+
100+ colcon build \
101+ --packages-up-to rosidl_generator_rs_tests \
102+ --allow-overriding action_msgs builtin_interfaces unique_identifier_msgs \
103+ --event-handlers console_direct+
85104
86105 - name : Test package
87106 shell : bash
@@ -95,4 +114,11 @@ jobs:
95114 shell : bash
96115 run : |
97116 tests_crate="$PWD/build/rosidl_generator_rs_tests/rosidl_generator_rs/rosidl_generator_rs_tests/rust"
117+ mkdir -p "$tests_crate/.cargo"
118+ cat > "$tests_crate/.cargo/config.toml" <<EOF
119+ [patch.crates-io]
120+ action_msgs = { path = "$PWD/build/action_msgs/rosidl_generator_rs/action_msgs/rust" }
121+ builtin_interfaces = { path = "$PWD/build/builtin_interfaces/rosidl_generator_rs/builtin_interfaces/rust" }
122+ unique_identifier_msgs = { path = "$PWD/build/unique_identifier_msgs/rosidl_generator_rs/unique_identifier_msgs/rust" }
123+ EOF
98124 cargo check --manifest-path "$tests_crate/Cargo.toml"
0 commit comments