Skip to content

Commit

Permalink
Merge pull request #295 from ros-drivers/run-ci-on-ros2-branch-too
Browse files Browse the repository at this point in the history
Run CI on ros2 branch pushes too
  • Loading branch information
flynneva authored Nov 5, 2023
2 parents 8422fa5 + 02d96f9 commit bbc47d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build and Test

on:
push:
branches:
- 'ros2'
pull_request:
branches:
- 'ros2/*'
Expand Down Expand Up @@ -73,7 +76,7 @@ jobs:
- name: Setup Directories
run: mkdir -p ros_ws/src
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: ros_ws/src
- name: Build and Test ROS 1
Expand Down
3 changes: 3 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
<url type="bugtracker">https://github.com/ros-drivers/usb_cam/issues</url>
<url type="repository">https://github.com/ros-drivers/usb_cam</url>

<!-- Required so ROS build farms properly set ROS_VERSION -->
<build_depend>ros_environment</build_depend>

<buildtool_depend condition="$ROS_VERSION == 1">catkin</buildtool_depend>

<buildtool_depend condition="$ROS_VERSION == 2">ament_cmake_auto</buildtool_depend>
Expand Down

0 comments on commit bbc47d7

Please sign in to comment.