Skip to content

Commit d8727ce

Browse files
authored
Merge pull request #439 from ANYbotics/mergify/bp/iron/pr-430
Add Github actions for colcon build (backport #430)
2 parents 22d87e3 + 1e2b9cd commit d8727ce

File tree

2 files changed

+49
-46
lines changed

2 files changed

+49
-46
lines changed

.circleci/config.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/colcon.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Colcon Build Test
2+
on:
3+
push:
4+
branches:
5+
- 'rolling'
6+
- 'iron'
7+
- 'humble'
8+
pull_request:
9+
branches:
10+
- '*'
11+
jobs:
12+
build-test:
13+
runs-on: ubuntu-22.04
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
config:
18+
- {rosdistro: 'iron', container: 'ros:iron'}
19+
container: ${{ matrix.config.container }}
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
path: src/grid_map
24+
- name: Pull in repos with vcs
25+
run: |
26+
apt-get update
27+
vcs import --shallow --skip-existing --input grid_map/tools/ros2_dependencies.repos
28+
shell: bash
29+
working-directory: src
30+
- name: Install Dependencies with Rosdep
31+
run: |
32+
apt update
33+
rosdep update
34+
source /opt/ros/${{matrix.config.rosdistro}}/setup.bash
35+
rosdep install --from-paths src --ignore-src -y --skip-keys "slam_toolbox turtlebot3_gazebo gazebo_ros_pkgs"
36+
shell: bash
37+
- name: Colcon Build (Release)
38+
run: |
39+
source /opt/ros/${{matrix.config.rosdistro}}/setup.bash
40+
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-up-to grid_map
41+
shell: bash
42+
- name: Test
43+
run: |
44+
source /opt/ros/${{matrix.config.rosdistro}}/setup.bash
45+
source install/setup.bash
46+
colcon test --return-code-on-test-failure --paths src/grid_map/* --event-handlers=console_cohesion+
47+
colcon test-result --all --verbose
48+
shell: bash
49+

0 commit comments

Comments
 (0)