-
Notifications
You must be signed in to change notification settings - Fork 811
52 lines (51 loc) · 1.5 KB
/
colcon.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
name: Colcon Build Test
on:
push:
branches:
- 'rolling'
- 'jazzy'
- 'iron'
- 'humble'
pull_request:
branches:
- '*'
jobs:
build-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- {rosdistro: 'rolling', container: 'rostooling/setup-ros-docker:ubuntu-noble-ros-rolling-desktop-latest'}
container:
image: ${{ matrix.config.container }}
steps:
- uses: actions/checkout@v4
with:
path: src/grid_map
- name: Pull in repos with vcs
run: |
apt-get update
vcs import --shallow --skip-existing --input grid_map/tools/ros2_dependencies.repos
shell: bash
working-directory: src
if: ${{ matrix.config.rosdistro == 'rolling' }}
- name: Install Dependencies with Rosdep
run: |
apt update
rosdep update
source /opt/ros/${{matrix.config.rosdistro}}/setup.bash
rosdep install --from-paths src --ignore-src -y --skip-keys "slam_toolbox"
shell: bash
- name: Colcon Build (Release)
run: |
source /opt/ros/${{matrix.config.rosdistro}}/setup.bash
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-up-to grid_map
shell: bash
- name: Test
run: |
source /opt/ros/${{matrix.config.rosdistro}}/setup.bash
source install/setup.bash
colcon test --paths src/grid_map/* --event-handlers=console_cohesion+
colcon test-result --all --verbose
shell: bash