Skip to content

Commit

Permalink
Add CI for ROS2 and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
mbusy committed Dec 19, 2021
1 parent b5abbb7 commit e40391e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: build

on:
push:
branches: [ros, noetic-devel, melodic-devel, kinetic-devel]
branches: [ros, ros2, galactic-devel, foxy-devel, noetic-devel, melodic-devel, kinetic-devel]

workflow_dispatch: # allow manually starting this workflow

Expand All @@ -17,7 +17,17 @@ jobs:
run: |
branch_name=$(echo '${{ github.ref }}' | sed 's,refs/heads/,,g')
if [ "$branch_name" == "noetic-devel" ]
if [ "$branch_name" == "galactic-devel" ]
then
MATRIX_PARAMS_COMBINATIONS='
{"ROS_DISTRO": "galactic", "ROS_REPO": "testing", "OS_NAME": "ubuntu", "OS_CODE_NAME": "focal", "ALLOW_FAIL": false},
'
elif [ "$branch_name" == "foxy-devel" ]
then
MATRIX_PARAMS_COMBINATIONS='
{"ROS_DISTRO": "foxy", "ROS_REPO": "testing", "OS_NAME": "ubuntu", "OS_CODE_NAME": "focal", "ALLOW_FAIL": false},
'
elif [ "$branch_name" == "noetic-devel" ]
then
MATRIX_PARAMS_COMBINATIONS='
{"ROS_DISTRO": "noetic", "ROS_REPO": "testing", "OS_NAME": "ubuntu", "OS_CODE_NAME": "focal", "ALLOW_FAIL": false},
Expand All @@ -33,6 +43,12 @@ jobs:
MATRIX_PARAMS_COMBINATIONS='
{"ROS_DISTRO": "kinetic", "ROS_REPO": "testing", "OS_NAME": "ubuntu", "OS_CODE_NAME": "xenial", "ALLOW_FAIL": true},
'
elif [ "$branch_name" == "ros2" ]
then
MATRIX_PARAMS_COMBINATIONS='
{"ROS_DISTRO": "galactic", "ROS_REPO": "testing", "OS_NAME": "ubuntu", "OS_CODE_NAME": "focal", "ALLOW_FAIL": false},
{"ROS_DISTRO": "foxy", "ROS_REPO": "testing", "OS_NAME": "ubuntu", "OS_CODE_NAME": "focal", "ALLOW_FAIL": false},
'
elif [ "$branch_name" == "ros" ]
then
MATRIX_PARAMS_COMBINATIONS='
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# naoqi_libqicore [![build](https://github.com/ros-naoqi/libqicore/actions/workflows/build.yml/badge.svg?branch=ros)](https://github.com/ros-naoqi/libqicore/actions/workflows/build.yml)
# naoqi_libqicore [![build](https://github.com/ros-naoqi/libqicore/actions/workflows/build.yml/badge.svg?branch=ros2)](https://github.com/ros-naoqi/libqicore/actions/workflows/build.yml)

This fork is used to define the __naoqi_libqicore__ ROS package, based on [__libqicore__](https://github.com/aldebaran/libqicore).
This fork is used to define the __naoqi_libqicore__ ROS2 package, based on [__libqicore__](https://github.com/aldebaran/libqicore).

## Compilation
To compile __naoqi_libqicore__, clone this repository in a ROS workspace and use the `catkin_make` command. Please note that [__naoqi_libqi__](https://github.com/ros-naoqi/libqi) is a dependency of that project, you should have the package `ros-distro-naoqi-libqi` installed, or build the naoqi_libqi project from source in the same workspace.
To compile __naoqi_libqicore__, clone this repository in a ROS workspace and use the `colcon build` command. Please note that [__naoqi_libqi__](https://github.com/ros-naoqi/libqi) is a dependency of that project, you should have the package `ros-distro-naoqi-libqi` installed, or build the naoqi_libqi project from source in the same workspace.

Please note that you should checkout the branch corresponding to your ROS distro (eg. `melodic-devel` for Melodic, `noetic-devel` for Noetic, etc...)
Please note that you should checkout the branch corresponding to your ROS distro (eg. `galactic-devel` for Galactic, `foxy-devel` for Foxy, etc...)

## Status

The project can currently be successfully built for `Noetic (focal)` and `Melodic (bionic)`. Please refer to the [build workflow](https://github.com/ros-naoqi/libqicore/actions/workflows/build.yml) for more information
The project can currently be successfully built for `Galactic (focal)` and `Foxy (focal)`. Please refer to the [build workflow](https://github.com/ros-naoqi/libqicore/actions/workflows/build.yml) for more information

0 comments on commit e40391e

Please sign in to comment.