-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (52 loc) · 1.56 KB
/
jazzy.yml
File metadata and controls
61 lines (52 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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