Skip to content

Commit 603cb5e

Browse files
Add exclude_source_packages and extra-cmake-args (#574)
1 parent bf93cf1 commit 603cb5e

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/reusable-ros-tooling-source-build.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ on:
2424
required: false
2525
default: ''
2626
type: string
27+
extra-cmake-args:
28+
default: ''
29+
description: Additional flags passed to CMake (using colcon build --cmake-args)
30+
required: false
31+
type: string
32+
exclude_source_packages:
33+
default: 'pinocchio'
34+
description: |
35+
Space-separated list of packages to exclude from source build (e.g. packages that should be installed via apt). Note: Also its dependencies will be excluded from source build.
36+
required: false
37+
type: string
2738

2839
jobs:
2940
reusable_ros_tooling_source_build:
@@ -75,7 +86,7 @@ jobs:
7586
run: |
7687
for i in {1..5}; do
7788
rosinstall_generator ${{ steps.package_list_action.outputs.package_list }} --rosdistro ${{ inputs.ros_distro }} \
78-
--deps-only --deps --upstream-development > /tmp/deps.repos && break || echo "retry #${i} .." && sleep 60;
89+
--deps-only --deps --upstream-development --exclude ${{ inputs.exclude_source_packages }} > /tmp/deps.repos && break || echo "retry #${i} .." && sleep 60;
7990
done
8091
if [ -s /tmp/deps.repos ]; then
8192
echo "vcs_file_path=/tmp/deps.repos" >> $GITHUB_OUTPUT
@@ -91,6 +102,7 @@ jobs:
91102
rosdep-skip-keys: rti-connext-dds-7.3.0
92103
vcs-repo-file-url: ${{ steps.check_deps_file.outputs.vcs_file_path }}
93104
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
105+
extra-cmake-args: ${{ inputs.extra-cmake-args }}
94106
colcon-defaults: |
95107
{
96108
"test": {

0 commit comments

Comments
 (0)