Skip to content

Commit c5a5003

Browse files
Use matrix strategy for main+testing and fix some issues
1 parent 04a4517 commit c5a5003

18 files changed

+102
-151
lines changed

.github/workflows/ci-ros-lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
jobs:
66
ament_lint:
77
name: ament_${{ matrix.linter }}
8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-22.04
99
strategy:
1010
fail-fast: false
1111
matrix:
@@ -23,7 +23,7 @@ jobs:
2323

2424
ament_lint_100:
2525
name: ament_${{ matrix.linter }}
26-
runs-on: ubuntu-20.04
26+
runs-on: ubuntu-22.04
2727
strategy:
2828
fail-fast: false
2929
matrix:

.github/workflows/humble-abi-compatibility.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Humble - ABI Compatibility Check
22
on:
33
workflow_dispatch:
4-
branches:
5-
- master
64
pull_request:
75
branches:
86
- master

.github/workflows/humble-binary-build-testing.yml

-26
This file was deleted.

.github/workflows/humble-binary-build-main.yml .github/workflows/humble-binary-build.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
name: Humble Binary Build - main
1+
name: Humble Binary Build
22
# author: Denis Štogl <[email protected]>
33
# description: 'Build & test all dependencies from released (binary) packages.'
44

55
on:
66
workflow_dispatch:
7-
branches:
8-
- master
97
pull_request:
108
branches:
119
- master
@@ -19,8 +17,11 @@ on:
1917
jobs:
2018
binary:
2119
uses: ./.github/workflows/reusable-industrial-ci-with-cache.yml
20+
strategy:
21+
matrix:
22+
ROS_REPO: [main, testing]
2223
with:
2324
ros_distro: humble
24-
ros_repo: main
25+
ros_repo: ${{ matrix.ROS_REPO }}
2526
upstream_workspace: kinematics_interface-not-released.humble.repos
2627
ref_for_scheduled_build: master
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Debian Humble Build
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
branches:
6+
- master
7+
schedule:
8+
# Run every day to detect flakiness and broken dependencies
9+
- cron: '33 2 * * *'
10+
11+
12+
jobs:
13+
humble_debian:
14+
name: Humble debian build
15+
runs-on: ubuntu-latest
16+
env:
17+
ROS_DISTRO: humble
18+
container: ghcr.io/ros-controls/ros:humble-debian
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
path: src/kinematics_interface
23+
- name: Build and test
24+
shell: bash
25+
run: |
26+
source /opt/ros2_ws/install/setup.bash
27+
vcs import src < src/kinematics_interface/kinematics_interface.${{ env.ROS_DISTRO }}.repos
28+
colcon build
29+
colcon test
30+
colcon test-result --verbose
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
name: Humble RHEL Binary Build
1+
name: RHEL Humble Binary Build
22
on:
33
workflow_dispatch:
4-
branches:
5-
- master
64
pull_request:
75
branches:
86
- master
9-
push:
10-
branches:
11-
- master
127
schedule:
138
# Run every day to detect flakiness and broken dependencies
14-
- cron: '03 1 * * *'
15-
9+
- cron: '42 4 * * *'
1610

1711
jobs:
1812
humble_rhel_binary:
@@ -25,9 +19,13 @@ jobs:
2519
- uses: actions/checkout@v4
2620
with:
2721
path: src/kinematics_interface
28-
- run: |
22+
- name: Install dependencies
23+
run: |
2924
rosdep update
30-
rosdep install -iy --from-path src/kinematics_interface
25+
rosdep install -iyr --from-path src/kinematics_interface || true
26+
- name: Build and test
27+
run: |
3128
source /opt/ros/${{ env.ROS_DISTRO }}/setup.bash
3229
colcon build
3330
colcon test
31+
colcon test-result --verbose

.github/workflows/humble-semi-binary-build-testing.yml

-25
This file was deleted.

.github/workflows/humble-semi-binary-build-main.yml .github/workflows/humble-semi-binary-build.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
name: Humble Semi-Binary Build - main
1+
name: Humble Semi-Binary Build
22
# description: 'Build & test that compiles the main dependencies from source.'
33

44
on:
55
workflow_dispatch:
6-
branches:
7-
- master
86
pull_request:
97
branches:
108
- master
@@ -18,8 +16,11 @@ on:
1816
jobs:
1917
semi_binary:
2018
uses: ./.github/workflows/reusable-industrial-ci-with-cache.yml
19+
strategy:
20+
matrix:
21+
ROS_REPO: [main, testing]
2122
with:
2223
ros_distro: humble
23-
ros_repo: main
24+
ros_repo: ${{ matrix.ROS_REPO }}
2425
upstream_workspace: kinematics_interface.humble.repos
2526
ref_for_scheduled_build: master

.github/workflows/humble-source-build.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Humble Source Build
22
on:
33
workflow_dispatch:
4-
branches:
5-
- master
64
push:
75
branches:
86
- master
@@ -16,4 +14,4 @@ jobs:
1614
with:
1715
ros_distro: humble
1816
ref: master
19-
ros2_repo_branch: master-humble
17+
ros2_repo_branch: humble

.github/workflows/reusable-ros-tooling-source-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
required: true
1515
type: string
1616
ros2_repo_branch:
17-
description: 'Branch in the ros2/ros2 repozitory from which ".repos" should be used. Possible values: master (Rolling), humble, galactic, foxy.'
17+
description: 'Branch in the ros2/ros2 repository from which ".repos" should be used.'
1818
default: 'master'
1919
required: false
2020
type: string

.github/workflows/rolling-abi-compatibility.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Rolling - ABI Compatibility Check
22
on:
33
workflow_dispatch:
4-
branches:
5-
- master
64
pull_request:
75
branches:
86
- master

.github/workflows/rolling-binary-build-testing.yml

-26
This file was deleted.

.github/workflows/rolling-binary-build-main.yml .github/workflows/rolling-binary-build.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
name: Rolling Binary Build - main
1+
name: Rolling Binary Build
22
# author: Denis Štogl <[email protected]>
33
# description: 'Build & test all dependencies from released (binary) packages.'
44

55
on:
66
workflow_dispatch:
7-
branches:
8-
- master
97
pull_request:
108
branches:
119
- master
@@ -19,8 +17,11 @@ on:
1917
jobs:
2018
binary:
2119
uses: ./.github/workflows/reusable-industrial-ci-with-cache.yml
20+
strategy:
21+
matrix:
22+
ROS_REPO: [main, testing]
2223
with:
2324
ros_distro: rolling
24-
ros_repo: main
25+
ros_repo: ${{ matrix.ROS_REPO }}
2526
upstream_workspace: kinematics_interface-not-released.rolling.repos
2627
ref_for_scheduled_build: master
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Debian Rolling Build
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
branches:
6+
- master
7+
schedule:
8+
# Run every day to detect flakiness and broken dependencies
9+
- cron: '33 2 * * *'
10+
11+
12+
jobs:
13+
rolling_debian:
14+
name: Rolling debian build
15+
runs-on: ubuntu-latest
16+
env:
17+
ROS_DISTRO: rolling
18+
container: ghcr.io/ros-controls/ros:rolling-debian
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
path: src/kinematics_interface
23+
- name: Build and test
24+
shell: bash
25+
run: |
26+
source /opt/ros2_ws/install/setup.bash
27+
vcs import src < src/kinematics_interface/kinematics_interface.${{ env.ROS_DISTRO }}.repos
28+
colcon build
29+
colcon test
30+
colcon test-result --verbose
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
name: Rolling RHEL Binary Build
1+
name: RHEL Rolling Binary Build
22
on:
33
workflow_dispatch:
4-
branches:
5-
- master
64
pull_request:
75
branches:
86
- master
9-
push:
10-
branches:
11-
- master
127
schedule:
138
# Run every day to detect flakiness and broken dependencies
14-
- cron: '03 1 * * *'
9+
- cron: '42 4 * * *'
1510

1611

1712
jobs:
@@ -20,14 +15,18 @@ jobs:
2015
runs-on: ubuntu-latest
2116
env:
2217
ROS_DISTRO: rolling
23-
container: jaronl/ros:rolling-alma
18+
container: ghcr.io/ros-controls/ros:rolling-rhel
2419
steps:
2520
- uses: actions/checkout@v4
2621
with:
2722
path: src/kinematics_interface
28-
- run: |
23+
- name: Install dependencies
24+
run: |
2925
rosdep update
30-
rosdep install -iy --from-path src/kinematics_interface
26+
rosdep install -iyr --from-path src/kinematics_interface || true
27+
- name: Build and test
28+
run: |
3129
source /opt/ros/${{ env.ROS_DISTRO }}/setup.bash
3230
colcon build
3331
colcon test
32+
colcon test-result --verbose

.github/workflows/rolling-semi-binary-build-testing.yml

-25
This file was deleted.

0 commit comments

Comments
 (0)