-
Notifications
You must be signed in to change notification settings - Fork 279
53 lines (47 loc) · 1.56 KB
/
Copy pathci.yml
File metadata and controls
53 lines (47 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
name: ROS 2 CI
on:
pull_request:
push:
schedule:
- cron: '0 0 * * *' # every day to test Jazzy packages updates
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
ros_distribution: [jazzy]
include:
- ros_distribution: jazzy
# desktop-full provides less time spent in installing 179 pkgs with respect to desktop
# in exchange for using 500Mb more.
ros_container: ghcr.io/sloretz/ros:jazzy-desktop-full
name: ${{ matrix.ros_distribution }}
runs-on: ubuntu-latest
container:
image: ${{ matrix.ros_container }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup ROS environment
uses: ros-tooling/setup-ros@2b99a8a2967082335154a0dcfa9cbdcf2901ba15 # v 0.7.12
with:
required-ros-distributions: ${{ matrix.ros_distribution }}
- name: Build and test
uses: ros-tooling/action-ros-ci@1ff2c804b4c2383146d8cd8444dfda64ab4bf7ac # v 0.4.3
with:
target-ros2-distro: ${{ matrix.ros_distribution }}
no-symlink-install: true # code has problems to work with symlink installations
colcon-defaults: |
{
"build": {
"merge-install": true
},
"test": {
"executor": "sequential",
"event-handlers": [
"console_direct+"
],
"merge-install": true,
"return-code-on-test-failure": true
}
}