From 77c03603646123b53cdfb91a92827b73b9a50806 Mon Sep 17 00:00:00 2001 From: Rufus Wong Date: Mon, 3 Feb 2025 17:17:30 -0500 Subject: [PATCH] CI : Pull in external repos --- .github/workflows/build.yaml | 12 ++++---- ros2_ws/external.repos | 57 ++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 5 deletions(-) create mode 100644 ros2_ws/external.repos diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3b622db..7b5f3d4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -15,7 +15,7 @@ jobs: defaults: run: shell: bash - # working-directory: ./workspace + working-directory: ./ros2_ws container: image: ghcr.io/${{ github.actor }}/spaceros2_rust_dev:latest # options: --user spaceros-user @@ -23,12 +23,14 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Pull external repos + run: mkdir src/external && cd src/external && vcs import < ../../external.repos + - name: investigate run: | - pwd - whoami - ls -la - id -u + colcon list + cd src/external/ros2_rust/rosidl_generator_rs + cat package.xml - name: Build run: source /opt/spaceros/install/setup.bash && colcon build --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=1 --packages-up-to bringup diff --git a/ros2_ws/external.repos b/ros2_ws/external.repos new file mode 100644 index 0000000..d53a9a1 --- /dev/null +++ b/ros2_ws/external.repos @@ -0,0 +1,57 @@ +repositories: + BehaviorTree.CPP: + type: git + url: https://github.com/BehaviorTree/BehaviorTree.CPP.git + version: master + BehaviorTree.ROS2: + type: git + url: https://github.com/BehaviorTree/BehaviorTree.ROS2.git + version: humble + RSL: + type: git + url: https://github.com/PickNikRobotics/RSL.git + version: main + angles: + type: git + url: https://github.com/ros/angles.git + version: ros2 + cpp_polyfills: + type: git + url: https://github.com/PickNikRobotics/cpp_polyfills.git + version: main + generate_parameter_library: + type: git + url: https://github.com/PickNikRobotics/generate_parameter_library.git + version: main + geographic_info: + type: git + url: https://github.com/ros-geographic-info/geographic_info.git + version: ros2 + ros2_rust: + type: git + url: https://github.com/rcywongaa/ros2_rust.git + version: spaceros + ros2_rust_deps/ros2/common_interfaces: + type: git + url: https://github.com/ros2/common_interfaces.git + version: humble + ros2_rust_deps/ros2/example_interfaces: + type: git + url: https://github.com/ros2/example_interfaces.git + version: humble + ros2_rust_deps/ros2/rcl_interfaces: + type: git + url: https://github.com/ros2/rcl_interfaces.git + version: humble + ros2_rust_deps/ros2/rosidl_defaults: + type: git + url: https://github.com/ros2/rosidl_defaults.git + version: humble + ros2_rust_deps/ros2/test_interface_files: + type: git + url: https://github.com/ros2/test_interface_files.git + version: humble + ros2_rust_deps/ros2/unique_identifier_msgs: + type: git + url: https://github.com/ros2/unique_identifier_msgs.git + version: humble