-
Notifications
You must be signed in to change notification settings - Fork 3
148 lines (117 loc) · 4.5 KB
/
head_2.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
on: [push, pull_request]
env:
APT: sudo apt install -y --no-install-recommends
# Set the python path manually to include /usr/-/python2.7/dist-packages
# as this is where apt-get installs python packages.
ROSINSTALL_FILE: $GITHUB_WORKSPACE/dependencies.rosinstall
CATKIN_OPTIONS: $GITHUB_WORKSPACE/catkin.options
jobs:
jammy_deb_packages:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo make install-deps
- run: $APT fakeroot devscripts build-essential
- run: |
make deb-build DEB_TARGET=jammy
make deb-install DEB_TARGET=jammy
# make cmake_dependency # requires ROS
focal_deb_packages:
runs-on: ubuntu-20.04
env:
ROS_DISTRO: noetic
ROS_HOSTNAME: localhost
ROS_CI_DESKTOP: focal
steps:
- uses: actions/checkout@v3
- run: sudo make install-ros ROS_DISTRO=$ROS_DISTRO UBUNTU_DISTRO=$ROS_CI_DESKTOP
- run: rosdep update
- run: sudo make install-deps
- run: $APT fakeroot devscripts build-essential
- run: |
source /opt/ros/$ROS_DISTRO/setup.bash
make deb-build DEB_TARGET=focal
make deb-install DEB_TARGET=focal
make cmake_dependency
clang_noros:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt update
- run: sudo make install-deps
- run: make build-tests TYPE=Debug OPTIONS=noros TARGETS="all" TC=clang ARGS=-V
jammy_gcc_noros:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt update
- run: sudo make install-deps
- run: make build-tests TYPE=Debug OPTIONS=noros TARGETS="all" TC=gcc ARGS=-V
focal_gcc_noros:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- run: sudo apt update
- run: sudo make install-deps
- run: make build-tests TYPE=Debug OPTIONS=noros TARGETS="all" TC=gcc ARGS=-V
focal_clang_ros:
runs-on: ubuntu-20.04
env:
ROS_DISTRO: noetic
ROS_HOSTNAME: localhost
ROS_CI_DESKTOP: focal
steps:
- uses: actions/checkout@v3
- run: sudo make install-ros ROS_DISTRO=$ROS_DISTRO UBUNTU_DISTRO=$ROS_CI_DESKTOP
- run: rosdep update
- run: sudo make install-deps
- run: |
source /opt/ros/$ROS_DISTRO/setup.bash
make build-tests TYPE=Debug OPTIONS=ros TARGETS="all" TC=clang ARGS=-V
focal_gcc_ros:
runs-on: ubuntu-20.04
env:
ROS_DISTRO: noetic
ROS_HOSTNAME: localhost
ROS_CI_DESKTOP: focal
steps:
- uses: actions/checkout@v3
- run: sudo make install-ros ROS_DISTRO=$ROS_DISTRO UBUNTU_DISTRO=$ROS_CI_DESKTOP
- run: rosdep update
- run: sudo make install-deps
- run: |
source /opt/ros/$ROS_DISTRO/setup.bash
make build-tests TYPE=Debug OPTIONS=ros TARGETS="all" TC=gcc ARGS=-V
jammy_static_checks:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt update
- run: $APT cppcheck
- run: $APT python3-pip python3-setuptools
- run: sudo pip3 install scspell3k
- run: make cppcheck
- run: make spell
focal_gcc_ros_scanbuild:
runs-on: ubuntu-20.04
env:
ROS_DISTRO: noetic
ROS_HOSTNAME: localhost
ROS_CI_DESKTOP: focal
steps:
- uses: actions/checkout@v3
- run: sudo make install-ros ROS_DISTRO=$ROS_DISTRO UBUNTU_DISTRO=$ROS_CI_DESKTOP
- run: rosdep update
- run: sudo make install-deps
- run: $APT clang-tools-12 clang-tidy-12
- run: |
source /opt/ros/$ROS_DISTRO/setup.bash
make clangcheck SCANBUILD=scan-build-12 OPTIONS=ros_tidy TC=gcc
jammy_gcc_noros_scanbuild:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt update
- run: sudo make install-deps
- run: $APT clang-tools-14 clang-tidy-14
- run: make clangcheck SCANBUILD=scan-build-14 OPTIONS=noros TC=gcc