Skip to content

Commit 84101bf

Browse files
committed
Add CI for ROS2
1 parent d8e9566 commit 84101bf

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: build
22

33
on:
44
push:
5-
branches: [ros, noetic-devel, melodic-devel, kinetic-devel]
5+
branches: [ros, ros2, galactic-devel, foxy-devel, noetic-devel, melodic-devel, kinetic-devel]
66

77
workflow_dispatch: # allow manually starting this workflow
88

@@ -17,7 +17,17 @@ jobs:
1717
run: |
1818
branch_name=$(echo '${{ github.ref }}' | sed 's,refs/heads/,,g')
1919
20-
if [ "$branch_name" == "noetic-devel" ]
20+
if [ "$branch_name" == "galactic-devel" ]
21+
then
22+
MATRIX_PARAMS_COMBINATIONS='
23+
{"ROS_DISTRO": "galactic", "ROS_REPO": "testing", "OS_NAME": "ubuntu", "OS_CODE_NAME": "focal", "ALLOW_FAIL": false},
24+
'
25+
elif [ "$branch_name" == "foxy-devel" ]
26+
then
27+
MATRIX_PARAMS_COMBINATIONS='
28+
{"ROS_DISTRO": "foxy", "ROS_REPO": "testing", "OS_NAME": "ubuntu", "OS_CODE_NAME": "focal", "ALLOW_FAIL": false},
29+
'
30+
elif [ "$branch_name" == "noetic-devel" ]
2131
then
2232
MATRIX_PARAMS_COMBINATIONS='
2333
{"ROS_DISTRO": "noetic", "ROS_REPO": "testing", "OS_NAME": "ubuntu", "OS_CODE_NAME": "focal", "ALLOW_FAIL": false},
@@ -33,6 +43,12 @@ jobs:
3343
MATRIX_PARAMS_COMBINATIONS='
3444
{"ROS_DISTRO": "kinetic", "ROS_REPO": "testing", "OS_NAME": "ubuntu", "OS_CODE_NAME": "xenial", "ALLOW_FAIL": true},
3545
'
46+
elif [ "$branch_name" == "ros2" ]
47+
then
48+
MATRIX_PARAMS_COMBINATIONS='
49+
{"ROS_DISTRO": "galactic", "ROS_REPO": "testing", "OS_NAME": "ubuntu", "OS_CODE_NAME": "focal", "ALLOW_FAIL": false},
50+
{"ROS_DISTRO": "foxy", "ROS_REPO": "testing", "OS_NAME": "ubuntu", "OS_CODE_NAME": "focal", "ALLOW_FAIL": false},
51+
'
3652
elif [ "$branch_name" == "ros" ]
3753
then
3854
MATRIX_PARAMS_COMBINATIONS='

README.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# naoqi_libqi [![build](https://github.com/ros-naoqi/libqi/actions/workflows/build.yml/badge.svg?branch=ros)](https://github.com/ros-naoqi/libqi/actions/workflows/build.yml)
1+
# naoqi_libqi [![build](https://github.com/ros-naoqi/libqi/actions/workflows/build.yml/badge.svg?branch=ros2)](https://github.com/ros-naoqi/libqi/actions/workflows/build.yml)
22

3-
This fork is used to define the __naoqi_libqi__ ROS package, based on [__libqi__](https://github.com/aldebaran/libqi).
3+
This fork is used to define the __naoqi_libqi__ ROS2 package, based on [__libqi__](https://github.com/aldebaran/libqi).
44

55
libqi is a middle-ware framework that provides RPC, type-erasure,
66
cross-language interoperability, OS abstractions, logging facilities,
@@ -9,18 +9,8 @@ asynchronous task management, dynamic module loading.
99
## Compilation
1010
To compile __naoqi_libqi__, clone this repository in a ROS workspace and use the `catkin_make` command.
1111

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

1414
## Status
1515

16-
The project can currently be successfully built for `Noetic (focal)` and `Melodic (bionic)`. Please refer to the [build workflow](https://github.com/ros-naoqi/libqi/actions/workflows/build.yml) for more information
17-
18-
<!-- [melodic-stretch]: https://github.com/ros-naoqi/libqi/actions/workflows/build.yml/badge.svg?branch=ros -->
19-
20-
21-
<!-- | ROS Distribution | Status |
22-
|-------------------|--------------------|
23-
| Noetic | ![noetic] |
24-
| Melodic | ![melodic] |
25-
| Melodic (stretch) | ![melodic-stretch] |
26-
| Kinetic | ![kinetic] | -->
16+
The project can currently be successfully built for `Galactic (focal)` and `Foxy (focal)`. Please refer to the [build workflow](https://github.com/ros-naoqi/libqi/actions/workflows/build.yml) for more information

0 commit comments

Comments
 (0)