-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (48 loc) · 1.72 KB
/
colcon-action-runner.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
# Workflow: colcon-action-runner
#
# This GitHub Actions workflow, named "colcon-action-runner,"
# is designed to be triggered on workflow calls.
# This action build, tests and run coverage with ROS or ROS 2 workspace from source.
#
# Trigger
# This workflow is triggered by a `workflow_call` event.
# Thirdparty actions
# https://github.com/marketplace/actions/ros-2-ci-action
# Comments a pull request with the code coverage generated by your tests.
# https://github.com/marketplace/ros-tooling/setup-ros
name: colcon-action-runner
on: [pull_request, workflow_dispatch]
jobs:
setup-colcon-ci:
strategy:
fail-fast: false
matrix:
ubuntu: [jammy]
distro: [humble]
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-${{ matrix.ubuntu }}-latest
name: run ${{ matrix.distro }} on colcon
steps:
- name: setup ros environment
uses: ros-tooling/[email protected]
with:
required-ros-distributions: ${{ matrix.distro }}
- name: build - ${{ github.event.repository.name }}
uses: ros-tooling/[email protected]
with:
package-name: |
${{ github.event.repository.name }}
target-ros2-distro: ${{ matrix.distro }}
skip-tests: true
no-symlink-install: true
colcon-extra-args: --event-handlers console_direct+ --executor sequential
colcon-defaults: |
{
"build": {
"cmake-args": [
"-DCMAKE_BUILD_TYPE=Debug"
]
}
}
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/1ddb69bedfd1f04c2f000e95452f7c24a4d6176b/index.yaml