-
Notifications
You must be signed in to change notification settings - Fork 33
71 lines (58 loc) · 1.75 KB
/
main.yml
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
64
65
66
67
68
69
70
71
name: colcon
on:
push:
pull_request:
paths-ignore:
- "README.md"
jobs:
build:
name: "${{ matrix.distribution }} (${{ matrix.ros }})"
runs-on: ubuntu-latest
strategy:
matrix:
include:
- distribution: ubuntu
version: 22.04
ros: humble
- distribution: ubuntu
version: 24.04
ros: jazzy
- distribution: almalinux
version: 8
ros: humble
- distribution: almalinux
version: 9
ros: jazzy
continue-on-error: ${{ matrix.ros == 'rolling' }}
container:
image: ${{ matrix.distribution }}:${{ matrix.version }}
env:
DEBIAN_FRONTEND: noninteractive
PIP_BREAK_SYSTEM_PACKAGES: 1
steps:
- name: fetch source
uses: actions/checkout@v4
- name: install ROS 2
uses: ros-tooling/[email protected]
- name: colcon lint dependencies
run: |
# apt install -y apt-rdepends ros-${{ matrix.ros }}-launch-ros
pip install lark
pip install colcon-lint
- name: build and test
uses: ros-tooling/[email protected]
id: action_ros_ci
with:
package-name: camera_ros
target-ros2-distro: ${{ matrix.ros }}
colcon-defaults: |
{
"build": {
"mixin": ["asan-gcc", "tsan", "coverage-gcc", "memcheck"]
}
}
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/5d51dff38097e8c2bf46d7a5b804e65935aa7f47/index.yaml
- name: colcon lint
working-directory: ${{ steps.action_ros_ci.outputs.ros-workspace-directory-name }}
run: |
colcon lint