Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add colcon arguments for selecting packages to build #859

Open
rafal-gorecki opened this issue Apr 5, 2024 · 2 comments
Open

Add colcon arguments for selecting packages to build #859

rafal-gorecki opened this issue Apr 5, 2024 · 2 comments

Comments

@rafal-gorecki
Copy link

rafal-gorecki commented Apr 5, 2024

Hello,

  1. I'm looking for some solutions: to add option --packages-up-to <package_name> during the colcon build and test phase. How can be it done on Github Actions?
  2. I'd like to also add global environment variable, how can I add it? I try following solutions, but it didn't work:
      - uses: ros-industrial/industrial_ci@master
        env:
          ROS_DISTRO: ${{matrix.ROS_DISTRO}}
          global:
            - BEFORE_INIT='export HUSARION_ROS_BUILD_TYPE=simulation'

Regards

@CihatAltiparmak
Copy link

CihatAltiparmak commented Jun 21, 2024

Hello,

  1. I'm looking for some solutions: to add option --packages-up-to <package_name> during the colcon build and test phase. How can be it done on Github Actions?

Hello,

I solved the first one by giving colcon relavant arguments after cmake arguments. You can use this trick like below.

https://github.com/CihatAltiparmak/moveit_middleware_benchmark/blob/efc00b8968db64879e2c355c23ed3f43ca5600ae/.github/workflows/industrial_ci.yml#L13

When you ran this CI, you will see this command.

https://github.com/CihatAltiparmak/moveit_middleware_benchmark/actions/runs/9604667418/job/26490644523#step:3:1492

@mathias-luedtke
Copy link
Member

Another options it to remove the additional packages (actually directories) after cloning, see https://github.com/ros-industrial/industrial_ci/blob/master/doc/index.rst#workspace-management

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants