Skip to content

Commit

Permalink
Merge pull request #440 from ANYbotics/mergify/bp/humble/pr-430
Browse files Browse the repository at this point in the history
Add Github actions for colcon build (backport #430)
  • Loading branch information
Ryanf55 authored Feb 18, 2024
2 parents 0601d25 + 7bbd37e commit 8612b3c
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 51 deletions.
46 changes: 0 additions & 46 deletions .circleci/config.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/colcon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Colcon Build Test
on:
push:
branches:
- 'rolling'
- 'iron'
- 'humble'
pull_request:
branches:
- '*'
jobs:
build-test:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
config:
- {rosdistro: 'humble', container: 'ros:humble'}
container: ${{ matrix.config.container }}
steps:
- uses: actions/checkout@v4
with:
path: src/grid_map
- 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 turtlebot3_gazebo gazebo_ros_pkgs"
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 --return-code-on-test-failure --paths src/grid_map/* --event-handlers=console_cohesion+
colcon test-result --all --verbose
shell: bash

5 changes: 0 additions & 5 deletions tools/ros2_dependencies.repos

This file was deleted.

0 comments on commit 8612b3c

Please sign in to comment.