Skip to content

Commit aae3d3e

Browse files
author
Sergi Romero Valderas
committed
Changed the use of apt to dnf when using rhel. Exclude noetic when running rhel. Put ubuntu or rhel in the job name
1 parent bd1ed75 commit aae3d3e

1 file changed

Lines changed: 23 additions & 3 deletions

File tree

.github/workflows/industrial-ci.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
industrial_ci:
11-
name: ${{matrix.ROS_DISTRO.NAME}}, ${{matrix.ROS_REPO}}
11+
name: ${{ matrix.ROS_DISTRO.NAME }} | ${{ matrix.ROS_REPO }}${{ matrix.PLATFORM == 'rhel' && ' (RHEL)' || '(UBUNTU)' }}
1212
runs-on: ubuntu-latest
1313
strategy:
1414
fail-fast: false
@@ -33,19 +33,39 @@ jobs:
3333
ROS_REPO:
3434
- main
3535
- 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+
3644
env:
3745
DOCKER_RUN_OPTS: "-v /var/run/docker.sock:/var/run/docker.sock --network ursim_net"
3846
steps:
3947
- uses: actions/checkout@v6
4048
- run: docker network create --subnet=192.168.56.0/24 ursim_net
4149
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+
else
58+
echo "docker_image=" >> $GITHUB_OUTPUT
59+
echo "additional_pkgs_name=ADDITIONAL_DEBS" >> $GITHUB_OUTPUT
60+
echo "additional_pkgs_values=docker.io netcat-openbsd" >> $GITHUB_OUTPUT
61+
fi
4262
- uses: "ros-industrial/industrial_ci@master"
4363
env:
4464
IMMEDIATE_TEST_OUTPUT: true
4565
DOWNSTREAM_CMAKE_ARGS: -DUR_ROBOT_DRIVER_BUILD_INTEGRATION_TESTS=ON
46-
ADDITIONAL_DEBS: docker.io netcat-openbsd # Needed for integration tests
4766
DOWNSTREAM_WORKSPACE: ${{matrix.ROS_DISTRO.DOWNSTREAM_WORKSPACE}}
4867
ROS_DISTRO: ${{matrix.ROS_DISTRO.NAME}}
4968
ROS_REPO: ${{matrix.ROS_REPO}}
5069
CLANG_TIDY: ${{matrix.ROS_DISTRO.CLANG_TIDY}}
51-
DOCKER_IMAGE: ${{ matrix.PLATFORM == 'rhel' && format('ghcr.io/ros-controls/ros:{0}-rhel', matrix.ROS_DISTRO.NAME) || '' }}
70+
DOCKER_IMAGE: ${{ steps.config.outputs.docker_image }}
71+
${{ steps.config.outputs.additional_pkgs_name }}: ${{ steps.config.outputs.additional_pkgs_values }}

0 commit comments

Comments
 (0)