Skip to content

Commit 8612b3c

Browse files
authored
Merge pull request #440 from ANYbotics/mergify/bp/humble/pr-430
Add Github actions for colcon build (backport #430)
2 parents 0601d25 + 7bbd37e commit 8612b3c

3 files changed

Lines changed: 43 additions & 51 deletions

File tree

.circleci/config.yml

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

.github/workflows/colcon.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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: 'humble', container: 'ros:humble'}
19+
container: ${{ matrix.config.container }}
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
path: src/grid_map
24+
- name: Install Dependencies with Rosdep
25+
run: |
26+
apt update
27+
rosdep update
28+
source /opt/ros/${{matrix.config.rosdistro}}/setup.bash
29+
rosdep install --from-paths src --ignore-src -y --skip-keys "slam_toolbox turtlebot3_gazebo gazebo_ros_pkgs"
30+
shell: bash
31+
- name: Colcon Build (Release)
32+
run: |
33+
source /opt/ros/${{matrix.config.rosdistro}}/setup.bash
34+
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-up-to grid_map
35+
shell: bash
36+
- name: Test
37+
run: |
38+
source /opt/ros/${{matrix.config.rosdistro}}/setup.bash
39+
source install/setup.bash
40+
colcon test --return-code-on-test-failure --paths src/grid_map/* --event-handlers=console_cohesion+
41+
colcon test-result --all --verbose
42+
shell: bash
43+

tools/ros2_dependencies.repos

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

0 commit comments

Comments
 (0)