Set up CI for Jazzy support verification #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ROS 2 Jazzy CI | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ros_distro: [jazzy] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| path: src/qt_rviz2_tutorial | |
| - name: Setup ROS 2 environment | |
| uses: ros-tooling/setup-ros@v0.7 | |
| with: | |
| required-ros-distributions: ${{ matrix.ros_distro }} | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| python3-colcon-common-extensions \ | |
| python3-rosdep \ | |
| qtbase5-dev \ | |
| qtdeclarative5-dev \ | |
| libqt5svg5-dev | |
| - name: Initialize rosdep | |
| run: | | |
| sudo rosdep init || true | |
| rosdep update | |
| - name: Install package dependencies | |
| run: | | |
| source /opt/ros/${{ matrix.ros_distro }}/setup.bash | |
| rosdep install --from-paths src --ignore-src -r -y | |
| - name: Build workspace | |
| run: | | |
| source /opt/ros/${{ matrix.ros_distro }}/setup.bash | |
| colcon build --symlink-install \ | |
| --cmake-args -DCMAKE_BUILD_TYPE=Release \ | |
| --event-handlers console_direct+ | |
| - name: Run tests | |
| run: | | |
| source /opt/ros/${{ matrix.ros_distro }}/setup.bash | |
| source install/setup.bash | |
| colcon test --event-handlers console_direct+ | |
| colcon test-result --verbose |