Skip to content

Commit 29d4177

Browse files
Added rustdoc check step to CI (#117)
1 parent 04f36d6 commit 29d4177

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/rust.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,14 @@ jobs:
8585
echo "Checking $path"
8686
cargo clippy -- -D warnings
8787
cd -
88-
done
88+
done
89+
90+
- name: Rustdoc check
91+
run: |
92+
cd ${{ steps.build.outputs.ros-workspace-directory-name }}
93+
. /opt/ros/${{ matrix.ros_distro }}/setup.sh
94+
for path in $(colcon list | awk '$3 == "(ament_cargo)" && $1 != "rclrs_examples" { print $2 }'); do
95+
cd $path
96+
cargo rustdoc -- -D warnings
97+
cd -
98+
done

0 commit comments

Comments
 (0)