Skip to content

Commit 276476e

Browse files
committed
Copy minimal lockfile when running Minimal CI
Signed-off-by: Michael X. Grey <[email protected]>
1 parent cdde0e5 commit 276476e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/rust-minimal.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ jobs:
9090
. /opt/ros/${{ matrix.ros_distribution }}/setup.sh
9191
for path in $(colcon list | awk '$3 == "(ament_cargo)" { print $2 }'); do
9292
cd $path
93+
cp Cargo.lock.minimal Cargo.lock
9394
echo "Running clippy in $path"
9495
# Run clippy for all features except generate_docs (needed for docs.rs)
9596
if [ "$(basename $path)" = "rclrs" ]; then
@@ -106,6 +107,7 @@ jobs:
106107
. install/setup.sh
107108
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
108109
cd $path
110+
cp Cargo.lock.minimal Cargo.lock
109111
echo "Running cargo test in $path"
110112
# Run cargo test for all features except generate_docs (needed for docs.rs)
111113
if [ "$(basename $path)" = "rclrs" ]; then
@@ -124,6 +126,7 @@ jobs:
124126
. /opt/ros/${{ matrix.ros_distribution }}/setup.sh
125127
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
126128
cd $path
129+
cp Cargo.lock.minimal Cargo.lock
127130
echo "Running rustdoc check in $path"
128131
cargo rustdoc -- -D warnings
129132
cd -

0 commit comments

Comments
 (0)