-
Notifications
You must be signed in to change notification settings - Fork 4.8k
63 lines (52 loc) · 1.54 KB
/
build-ROS2-package-CI.yaml
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
62
63
name: build_lrs_ROS2_package
on:
push:
branches: ['**']
pull_request:
branches: ['**']
permissions: read-all
jobs:
build_lrs_ros2_package:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
ros_distribution:
- humble
- iron
- rolling
- jazzy
include:
# Humble Hawksbill
- docker_image: ubuntu:jammy
ros_distribution: humble
# Iron Irwini
- docker_image: ubuntu:jammy
ros_distribution: iron
# Rolling Ridley
- docker_image: ubuntu:noble
ros_distribution: rolling
# Jazzy Jalisco
- docker_image: ubuntu:noble
ros_distribution: jazzy
container:
image: ${{ matrix.docker_image }}
steps:
- name: setup ROS environment
uses: ros-tooling/setup-ros@a6ce30ecca1e5dcc10ae5e6a44fe2169115bf852 #v0.7
with:
required-ros-distributions: ${{ matrix.ros_distribution }}
- name: build librealsense ROS 2
uses: ros-tooling/action-ros-ci@0c87ffc035492b66c9afb9159ca9664fb0b513e1 #v0.3
with:
target-ros2-distro: ${{ matrix.ros_distribution }}
skip-tests: true
colcon-defaults: | # We align the build flags to the librealsense2 ROS2 release build.
{
"build": {
"cmake-args": [
"-DBUILD_GRAPHICAL_EXAMPLES=OFF",
"-DBUILD_EXAMPLES=OFF"
]
}
}