-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
80 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,23 +15,41 @@ 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 | ||
options: --user root | ||
steps: | ||
# - name: Use Docker in rootless mode. | ||
# uses: ScribeMD/[email protected] | ||
|
||
# https://github.com/actions/runner/issues/434 | ||
# - name: Fix $USER permission | ||
# run: sudo usermod -a -G root spaceros-user | ||
|
||
# Checkout requires us to be root | ||
- uses: actions/checkout@v4 | ||
|
||
# colcon build requires us to be spaceros-user | ||
# but this doesn't work | ||
- name: Switch to spaceros-user | ||
run: su spaceros-user | ||
|
||
- 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 | ||
echo $PATH | ||
pip 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 | ||
run: su spaceros-user -c 'source /opt/spaceros/install/setup.bash && colcon build --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=1 --packages-up-to bringup --event-handlers console_cohesion+' | ||
|
||
- name: Run fsm test | ||
run: source /opt/spaceros/install/setup.bash && colcon test-result --delete-yes && colcon test --ctest-args tests --packages-select rover_fsm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |