Skip to content

Commit 5817de5

Browse files
authored
Merge pull request #1 from NITKK-ROS-Team/claude/add-jazzy-ci-support-012veWQWP92kE1t7sePAA3KF
Set up CI for Jazzy support verification
2 parents 2f74f71 + 66d0b15 commit 5817de5

14 files changed

Lines changed: 175 additions & 8 deletions

File tree

.github/workflows/jazzy.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: ROS 2 Jazzy CI
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-24.04
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
ros_distro: [jazzy]
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
path: src/qt_rviz2_tutorial
23+
24+
- name: Setup ROS 2 environment
25+
uses: ros-tooling/setup-ros@v0.7
26+
with:
27+
required-ros-distributions: ${{ matrix.ros_distro }}
28+
29+
- name: Install dependencies
30+
run: |
31+
sudo apt-get update
32+
sudo apt-get install -y \
33+
python3-colcon-common-extensions \
34+
python3-rosdep \
35+
qtbase5-dev \
36+
qtdeclarative5-dev \
37+
libqt5svg5-dev
38+
39+
- name: Initialize rosdep
40+
run: |
41+
sudo rosdep init || true
42+
rosdep update
43+
44+
- name: Install package dependencies
45+
run: |
46+
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
47+
rosdep install --from-paths src --ignore-src -r -y
48+
49+
- name: Build workspace
50+
run: |
51+
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
52+
colcon build --symlink-install \
53+
--cmake-args -DCMAKE_BUILD_TYPE=Release \
54+
--event-handlers console_direct+
55+
56+
- name: Run tests
57+
run: |
58+
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
59+
source install/setup.bash
60+
colcon test --event-handlers console_direct+
61+
colcon test-result --verbose

.github/workflows/ros2_ci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: ROS 2 CI (Multi-Distribution)
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
- ros_distro: humble
18+
ubuntu_version: ubuntu-22.04
19+
- ros_distro: jazzy
20+
ubuntu_version: ubuntu-24.04
21+
- ros_distro: rolling
22+
ubuntu_version: ubuntu-24.04
23+
24+
container:
25+
image: ros:${{ matrix.ros_distro }}-ros-base
26+
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v4
30+
with:
31+
path: src/qt_rviz2_tutorial
32+
33+
- name: Install dependencies
34+
run: |
35+
apt-get update
36+
apt-get install -y \
37+
python3-colcon-common-extensions \
38+
python3-rosdep \
39+
qtbase5-dev \
40+
qtdeclarative5-dev \
41+
libqt5svg5-dev
42+
43+
- name: Initialize rosdep
44+
run: |
45+
rosdep init || true
46+
rosdep update
47+
48+
- name: Install package dependencies
49+
run: |
50+
. /opt/ros/${{ matrix.ros_distro }}/setup.sh
51+
rosdep install --from-paths src --ignore-src -r -y
52+
53+
- name: Build workspace
54+
run: |
55+
. /opt/ros/${{ matrix.ros_distro }}/setup.sh
56+
colcon build --symlink-install \
57+
--cmake-args -DCMAKE_BUILD_TYPE=Release \
58+
--event-handlers console_direct+
59+
60+
- name: Run tests
61+
run: |
62+
. /opt/ros/${{ matrix.ros_distro }}/setup.sh
63+
. install/setup.sh
64+
colcon test --event-handlers console_direct+
65+
colcon test-result --verbose

10_rviz2panel_hello/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include_directories(
1818
${CMAKE_CURRENT_SOURCE_DIR}/src/
1919
)
2020
ament_auto_add_library(rviz2panel_hello SHARED
21-
src/widget/rviz2panel_hello.ui
21+
src/widget/rviz2panel_hello.ui
2222
src/widget/widget.cpp)
2323
target_link_libraries(rviz2panel_hello ${QT5_LIBS})
2424

@@ -28,6 +28,8 @@ if(BUILD_TESTING)
2828
find_package(ament_lint_auto REQUIRED)
2929
set(ament_cmake_copyright_FOUND TRUE)
3030
set(ament_cmake_cpplint_FOUND TRUE)
31+
set(ament_cmake_uncrustify_FOUND TRUE)
32+
set(ament_cmake_lint_cmake_FOUND TRUE)
3133
ament_lint_auto_find_test_dependencies()
3234
endif()
3335

10_rviz2panel_hello/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
<buildtool_depend>ament_cmake_auto</buildtool_depend>
1111

12+
<depend>pluginlib</depend>
1213
<depend>rviz_common</depend>
1314
<depend>qtbase5-dev</depend>
1415

11_rviz2panel_hello_template/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set(QT5_LIBS Qt5::Core Qt5::Gui Qt5::Widgets)
1515

1616
# ===== Widget =====
1717
ament_auto_add_library(rviz2panel_hello_template_rviz SHARED
18-
src/widget/base/rviz2panel_hello_template.ui
18+
src/widget/base/rviz2panel_hello_template.ui
1919
src/widget/base/base_widget.cpp
2020
src/widget/rviz_widget.cpp
2121
)
@@ -29,9 +29,9 @@ include_directories(
2929
${CMAKE_CURRENT_BINARY_DIR}/${TARGET_WIDGET}_autogen/include
3030
)
3131
ament_auto_add_library(${TARGET_WIDGET} SHARED
32-
src/widget/base/rviz2panel_hello_template.ui
32+
src/widget/base/rviz2panel_hello_template.ui
3333
src/widget/base/base_widget.cpp
34-
src/widget/qt_widget.hpp
34+
src/widget/qt_widget.cpp
3535
)
3636
target_link_libraries(${TARGET_WIDGET} ${QT5_LIBS})
3737
set(QT5_LIBS ${QT5_LIBS} ${TARGET_WIDGET})
@@ -52,6 +52,8 @@ if(BUILD_TESTING)
5252
find_package(ament_lint_auto REQUIRED)
5353
set(ament_cmake_copyright_FOUND TRUE)
5454
set(ament_cmake_cpplint_FOUND TRUE)
55+
set(ament_cmake_uncrustify_FOUND TRUE)
56+
set(ament_cmake_lint_cmake_FOUND TRUE)
5557
ament_lint_auto_find_test_dependencies()
5658
endif()
5759

11_rviz2panel_hello_template/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
<buildtool_depend>ament_cmake_auto</buildtool_depend>
1111

12+
<depend>pluginlib</depend>
1213
<depend>rviz_common</depend>
1314
<depend>qtbase5-dev</depend>
1415

12_rviz2panel_pubsub/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include_directories(
1818
${CMAKE_CURRENT_SOURCE_DIR}/src/
1919
)
2020
ament_auto_add_library(rviz2panel_pubsub SHARED
21-
src/widget/rviz2panel_pubsub.ui
21+
src/widget/rviz2panel_pubsub.ui
2222
src/widget/widget.cpp)
2323
target_link_libraries(rviz2panel_pubsub ${QT5_LIBS})
2424

@@ -28,6 +28,8 @@ if(BUILD_TESTING)
2828
find_package(ament_lint_auto REQUIRED)
2929
set(ament_cmake_copyright_FOUND TRUE)
3030
set(ament_cmake_cpplint_FOUND TRUE)
31+
set(ament_cmake_uncrustify_FOUND TRUE)
32+
set(ament_cmake_lint_cmake_FOUND TRUE)
3133
ament_lint_auto_find_test_dependencies()
3234
endif()
3335

12_rviz2panel_pubsub/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
<buildtool_depend>ament_cmake_auto</buildtool_depend>
1111

12+
<depend>pluginlib</depend>
1213
<depend>rviz_common</depend>
1314
<depend>qtbase5-dev</depend>
1415

13_rviz2panel_service_client/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include_directories(
1818
${CMAKE_CURRENT_SOURCE_DIR}/src/
1919
)
2020
ament_auto_add_library(rviz2panel_service_client SHARED
21-
src/widget/rviz2panel_service_client.ui
21+
src/widget/rviz2panel_service_client.ui
2222
src/widget/widget.cpp)
2323
target_link_libraries(rviz2panel_service_client ${QT5_LIBS})
2424

@@ -28,6 +28,8 @@ if(BUILD_TESTING)
2828
find_package(ament_lint_auto REQUIRED)
2929
set(ament_cmake_copyright_FOUND TRUE)
3030
set(ament_cmake_cpplint_FOUND TRUE)
31+
set(ament_cmake_uncrustify_FOUND TRUE)
32+
set(ament_cmake_lint_cmake_FOUND TRUE)
3133
ament_lint_auto_find_test_dependencies()
3234
endif()
3335

13_rviz2panel_service_client/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<buildtool_depend>ament_cmake_auto</buildtool_depend>
1111

1212
<depend>example_interfaces</depend>
13+
<depend>pluginlib</depend>
1314
<depend>rviz_common</depend>
1415
<depend>qtbase5-dev</depend>
1516

0 commit comments

Comments
 (0)