Skip to content

Commit 6fe02ae

Browse files
committed
build: split colcon build to fix dependency resolution in CI
1 parent 95e9a39 commit 6fe02ae

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

pixi.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ colcon-ros-cargo = "*"
4343
[tasks]
4444
# Install cargo-ament-build into the pixi environment's bin folder
4545
setup-cargo = "test -f $CONDA_PREFIX/bin/cargo-ament-build || cargo install cargo-ament-build --root $CONDA_PREFIX"
46-
# Build the workspace using colcon
47-
build = { cmd = "colcon build", depends-on = ["setup-cargo"], env = { LIBCLANG_PATH = "$CONDA_PREFIX/lib" } }
46+
# Build messages first
47+
build-msgs = { cmd = "colcon build --packages-select rmf_prototype_msgs", depends-on = ["setup-cargo"], env = { LIBCLANG_PATH = "$CONDA_PREFIX/lib" } }
48+
# Build the workspace using colcon (skipping messages which were built in build-msgs)
49+
build = { cmd = "colcon build --packages-skip rmf_prototype_msgs", depends-on = ["build-msgs"], env = { LIBCLANG_PATH = "$CONDA_PREFIX/lib", AMENT_PREFIX_PATH = "$PIXI_PROJECT_ROOT/install/rmf_prototype_msgs:$CONDA_PREFIX" } }
50+
4851
# Run tests
4952
test = { cmd = "colcon test --packages-select rmf_path_server_test --python-testing pytest --event-handlers console_direct+", depends-on = ["build"], env = { LIBCLANG_PATH = "$CONDA_PREFIX/lib" } }
5053

0 commit comments

Comments
 (0)