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 ROS2 build test #33

Merged
merged 2 commits into from
Dec 2, 2023
Merged

Add ROS2 build test #33

merged 2 commits into from
Dec 2, 2023

Conversation

Jaeyoung-Lim
Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim commented Dec 1, 2023

Problem Description
This PR adds a build test CI using github actions for ros2

  • Modified build test instructions for ROS2
  • Includes format fixes

Fixes #29

@srmainwaring Would it make sense to add test for macOS as well?
@Ryanf55 Would you be able to review the PR? Not sure if this is the best way to build test a ROS 2 package :)

Additional context

  • Unit tests are not run for ros2 yet

@Jaeyoung-Lim Jaeyoung-Lim force-pushed the pr-ros2-ci branch 2 times, most recently from 03db472 to 3b29395 Compare December 1, 2023 08:43
Fix format


Remove wstool 




Run with bash
@Jaeyoung-Lim Jaeyoung-Lim marked this pull request as ready for review December 1, 2023 08:52
Copy link
Collaborator

@Ryanf55 Ryanf55 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Everything looks good. If you remove all the commented code, that would make it clearer to read. It could be pretty short.

Is there a reason you didn't call colcon test after the build?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to change the indent in this PR?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that was part of a format fix. Are you using a different formatter than the one in this repo? (Tools)

@@ -14,8 +15,9 @@ jobs:
fail-fast: false
matrix:
config:
- {rosdistro: 'melodic', container: 'px4io/px4-dev-ros-melodic:2021-12-11'}
- {rosdistro: 'noetic', container: 'px4io/px4-dev-ros-noetic:2021-12-11'}
- {rosdistro: 'humble', container: 'osrf/ros:humble-desktop'}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you only have one set in the matrix, I think just hard code these. Matrix like this will only work if humble, iron, and rolling have no difference. The more common pattern is to create a unique branch to manage each ROS version and then do all dev on rolling.

Copy link
Member Author

@Jaeyoung-Lim Jaeyoung-Lim Dec 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I intended to test different ROS versions on the same branch. Can we keep it as is until we need different branches for different ROS releases?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely.

.github/workflows/build_test.yml Show resolved Hide resolved
.github/workflows/build_test.yml Outdated Show resolved Hide resolved
@Jaeyoung-Lim Jaeyoung-Lim merged commit e339e1d into ros2 Dec 2, 2023
2 checks passed
@Jaeyoung-Lim Jaeyoung-Lim deleted the pr-ros2-ci branch December 2, 2023 20:50
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

Successfully merging this pull request may close these issues.

Add CI for ROS2
2 participants