Skip to content

Commit 53c3bbe

Browse files
author
Sergi Romero Valderas
committed
Created an alternative job for rhel
1 parent 301f735 commit 53c3bbe

1 file changed

Lines changed: 46 additions & 42 deletions

File tree

.github/workflows/industrial-ci.yml

Lines changed: 46 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ on:
88

99
jobs:
1010
industrial_ci:
11-
name: ${{ matrix.ROS_DISTRO.NAME }} | ${{ matrix.ROS_REPO }}${{ matrix.PLATFORM == 'rhel' && ' (RHEL)' || ' (UBUNTU)' }}
11+
name: ${{matrix.ROS_DISTRO.NAME}}, ${{matrix.ROS_REPO}} (UBUNTU)
1212
runs-on: ubuntu-latest
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
PLATFORM: [ubuntu, rhel]
1716
ROS_DISTRO:
1817
- NAME: noetic
1918
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS_Driver#master"
@@ -33,58 +32,63 @@ jobs:
3332
ROS_REPO:
3433
- main
3534
- testing
36-
37-
exclude:
38-
- PLATFORM: rhel
39-
ROS_DISTRO:
40-
NAME: noetic
41-
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS_Driver#master"
42-
CLANG_TIDY: ""
43-
4435
env:
45-
DOCKER_RUN_OPTS: "-v /var/run/docker.sock:/var/run/docker.sock --network ursim_net"
36+
DOCKER_RUN_OPTS: '-v /var/run/docker.sock:/var/run/docker.sock --network ursim_net'
4637
steps:
4738
- uses: actions/checkout@v6
4839
- run: docker network create --subnet=192.168.56.0/24 ursim_net
4940
if: ${{ !env.ACT }}
50-
- name: Platform-specific configuration
51-
id: config
52-
run: |
53-
if [ "${{ matrix.PLATFORM }}" = "rhel" ]; then
54-
echo "docker_image=ghcr.io/ros-controls/ros:${{ matrix.ROS_DISTRO.NAME }}-rhel" >> $GITHUB_OUTPUT
55-
echo "additional_pkgs_name=ADDITIONAL_RPMS" >> $GITHUB_OUTPUT
56-
echo "additional_pkgs_values=nmap-ncat" >> $GITHUB_OUTPUT
57-
echo "os_name=rhel" >> $GITHUB_OUTPUT
58-
echo "os_code=8" >> $GITHUB_OUTPUT
59-
60-
else
61-
echo "additional_pkgs_name=ADDITIONAL_DEBS" >> $GITHUB_OUTPUT
62-
echo "additional_pkgs_values=docker.io netcat-openbsd" >> $GITHUB_OUTPUT
63-
fi
64-
65-
- name: industrial_ci (RHEL)
66-
if: ${{ matrix.PLATFORM == 'rhel' }}
67-
uses: ros-industrial/industrial_ci@master
41+
- uses: 'ros-industrial/industrial_ci@master'
6842
env:
6943
IMMEDIATE_TEST_OUTPUT: true
7044
DOWNSTREAM_CMAKE_ARGS: -DUR_ROBOT_DRIVER_BUILD_INTEGRATION_TESTS=ON
71-
DOWNSTREAM_WORKSPACE: ${{ matrix.ROS_DISTRO.DOWNSTREAM_WORKSPACE }}
72-
ROS_DISTRO: ${{ matrix.ROS_DISTRO.NAME }}
73-
ROS_REPO: ${{ matrix.ROS_REPO }}
74-
CLANG_TIDY: ${{ matrix.ROS_DISTRO.CLANG_TIDY }}
75-
DOCKER_IMAGE: ${{ steps.config.outputs.docker_image }}
76-
OS_NAME: ${{ steps.config.outputs.os_name }}
77-
OS_CODE_NAME: ${{ steps.config.outputs.os_code }}
78-
${{ steps.config.outputs.additional_pkgs_name }}: ${{ steps.config.outputs.additional_pkgs_values }}
45+
ADDITIONAL_DEBS: docker.io netcat-openbsd # Needed for integration tests
46+
DOWNSTREAM_WORKSPACE: ${{matrix.ROS_DISTRO.DOWNSTREAM_WORKSPACE}}
47+
ROS_DISTRO: ${{matrix.ROS_DISTRO.NAME}}
48+
ROS_REPO: ${{matrix.ROS_REPO}}
49+
CLANG_TIDY: ${{matrix.ROS_DISTRO.CLANG_TIDY}}
7950

80-
- name: industrial_ci (Ubuntu)
81-
if: ${{ matrix.PLATFORM == 'ubuntu' }}
82-
uses: ros-industrial/industrial_ci@master
51+
industrial_ci_rhel:
52+
name: ${{matrix.ROS_DISTRO.NAME}}, ${{matrix.ROS_REPO}} (RHEL)
53+
runs-on: ubuntu-latest
54+
container: ghcr.io/ros-controls/ros:${{ matrix.ROS_DISTRO.NAME }}-rhel
55+
strategy:
56+
fail-fast: false
57+
matrix:
58+
ROS_DISTRO:
59+
- NAME: humble
60+
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#humble"
61+
CLANG_TIDY: ""
62+
- NAME: jazzy
63+
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#jazzy"
64+
CLANG_TIDY: ""
65+
- NAME: kilted
66+
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#main"
67+
CLANG_TIDY: ""
68+
- NAME: rolling
69+
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#main"
70+
CLANG_TIDY: pedantic
71+
ROS_REPO:
72+
- main
73+
- testing
74+
75+
container:
76+
image: ghcr.io/ros-controls/ros:${{ matrix.ROS_DISTRO.NAME }}-rhel
77+
78+
env:
79+
DOCKER_RUN_OPTS: "-v /var/run/docker.sock:/var/run/docker.sock --network ursim_net"
80+
81+
steps:
82+
- uses: actions/checkout@v6
83+
- run: docker network create --subnet=192.168.56.0/24 ursim_net
84+
if: ${{ !env.ACT }}
85+
86+
- uses: ros-industrial/industrial_ci@master
8387
env:
8488
IMMEDIATE_TEST_OUTPUT: true
8589
DOWNSTREAM_CMAKE_ARGS: -DUR_ROBOT_DRIVER_BUILD_INTEGRATION_TESTS=ON
90+
ADDITIONAL_RPMS: nmap-ncat
8691
DOWNSTREAM_WORKSPACE: ${{ matrix.ROS_DISTRO.DOWNSTREAM_WORKSPACE }}
8792
ROS_DISTRO: ${{ matrix.ROS_DISTRO.NAME }}
8893
ROS_REPO: ${{ matrix.ROS_REPO }}
89-
CLANG_TIDY: ${{ matrix.ROS_DISTRO.CLANG_TIDY }}
90-
${{ steps.config.outputs.additional_pkgs_name }}: ${{ steps.config.outputs.additional_pkgs_values }}
94+
CLANG_TIDY: ${{ matrix.ROS_DISTRO.CLANG_TIDY }}

0 commit comments

Comments
 (0)