Skip to content

Commit 0a819e4

Browse files
authored
Merge branch 'ros2-rust:main' into maspe36/flexible_dockerfile_for_distros
2 parents faf29da + 38a6a92 commit 0a819e4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+123
-4243
lines changed

.github/workflows/rust-minimal.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
for path in $(colcon list | awk '$3 == "(ament_cargo)" { print $2 }'); do
100100
cd $path
101101
echo "Running clippy in $path"
102-
# Run clippy for all features except generate_docs (needed for docs.rs)
102+
# Run clippy for all features except use_ros_shim (needed for docs.rs)
103103
if [ "$(basename $path)" = "rclrs" ]; then
104104
cargo clippy --no-deps --all-targets -F default,dyn_msg -- -D warnings
105105
else
@@ -115,7 +115,7 @@ jobs:
115115
for path in $(colcon list | awk '$3 == "(ament_cargo)" && $1 != "examples_rclrs_minimal_pub_sub" && $1 != "examples_rclrs_minimal_client_service" && $1 != "rust_pubsub" { print $2 }'); do
116116
cd $path
117117
echo "Running cargo test in $path"
118-
# Run cargo test for all features except generate_docs (needed for docs.rs)
118+
# Run cargo test for all features except use_ros_shim (needed for docs.rs)
119119
if [ "$(basename $path)" = "rclrs" ]; then
120120
cargo test -F default,dyn_msg
121121
elif [ "$(basename $path)" = "rosidl_runtime_rs" ]; then

.github/workflows/rust-stable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
for path in $(colcon list | awk '$3 == "(ament_cargo)" { print $2 }'); do
100100
cd $path
101101
echo "Running clippy in $path"
102-
# Run clippy for all features except generate_docs (needed for docs.rs)
102+
# Run clippy for all features except use_ros_shim (needed for docs.rs)
103103
if [ "$(basename $path)" = "rclrs" ]; then
104104
cargo clippy --no-deps --all-targets -F default,dyn_msg -- -D warnings
105105
else
@@ -115,7 +115,7 @@ jobs:
115115
for path in $(colcon list | awk '$3 == "(ament_cargo)" && $1 != "examples_rclrs_minimal_pub_sub" && $1 != "examples_rclrs_minimal_client_service" && $1 != "rust_pubsub" { print $2 }'); do
116116
cd $path
117117
echo "Running cargo test in $path"
118-
# Run cargo test for all features except generate_docs (needed for docs.rs)
118+
# Run cargo test for all features except use_ros_shim (needed for docs.rs)
119119
if [ "$(basename $path)" = "rclrs" ]; then
120120
cargo test -F default,dyn_msg
121121
elif [ "$(basename $path)" = "rosidl_runtime_rs" ]; then

.github/workflows/rust-win.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ jobs:
3636
with:
3737
manifest-path: C:/pixi_ws/pixi.toml
3838

39-
- name: Get prebuild ROS files and unzip
40-
run: |
41-
irm https://ci.ros2.org/view/packaging/job/packaging_windows/lastSuccessfulBuild/artifact/ws/ros2-package-windows-AMD64.zip -Outfile ros2-package-windows-AMD64.zip
42-
Expand-Archive -Path ros2-package-windows-AMD64.zip -DestinationPath C:/pixi_ws/
43-
4439
- name: Install ros2_rust prerequisites
4540
# prerequisites and fixes for windows build ros2_rust:
4641
# * Libclang has to be added (from the ros2_rust instructions) and the dll has to be renamed
@@ -52,6 +47,12 @@ jobs:
5247
if (Test-Path $src) { Rename-Item -Path $src -NewName "libclang.dll" }
5348
pixi add --pypi "colcon-ros-cargo@git+https://github.com/colcon/colcon-ros-cargo.git" --manifest-path C:\pixi_ws\pixi.toml
5449
pixi add --pypi "colcon-cargo@git+https://github.com/colcon/colcon-cargo.git" --manifest-path C:\pixi_ws\pixi.toml
50+
pixi upgrade colcon-core --manifest-path C:\pixi_ws\pixi.toml
51+
52+
- name: Get prebuild ROS files and unzip
53+
run: |
54+
irm https://ci.ros2.org/view/packaging/job/packaging_windows/lastSuccessfulBuild/artifact/ws/ros2-package-windows-AMD64.zip -Outfile ros2-package-windows-AMD64.zip
55+
Expand-Archive -Path ros2-package-windows-AMD64.zip -DestinationPath C:/pixi_ws/
5556
5657
- name: Build the rust package
5758
env:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ dmypy.json
214214
# Generated by Cargo
215215
# will have compiled files and executables
216216
/target/
217+
Cargo.lock
217218

218219
# These are backup files generated by rustfmt
219220
**/*.rs.bk

examples/logging_demo/Cargo.toml

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/logging_demo/package.xml

Lines changed: 0 additions & 21 deletions
This file was deleted.

examples/logging_demo/src/main.rs

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)