Skip to content

Commit cb880f9

Browse files
Setup concurrency and cleanup some unnecessary matrix
1 parent 9efceb8 commit cb880f9

17 files changed

+86
-18
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches:
66
- humble
77

8+
concurrency:
9+
# cancel previous runs of the same workflow, except for pushes on humble branch
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}
12+
813
jobs:
914
abi_check:
1015
runs-on: ubuntu-latest

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

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ on:
1414
# Run every morning to detect flakiness and broken dependencies
1515
- cron: '03 1 * * *'
1616

17+
concurrency:
18+
# cancel previous runs of the same workflow, except for pushes on humble branch
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}
21+
1722
jobs:
1823
binary:
1924
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master

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

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
branches:
99
- humble
1010

11+
concurrency:
12+
# cancel previous runs of the same workflow, except for pushes on humble branch
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}
15+
1116
jobs:
1217
coverage_humble:
1318
name: coverage build - humble

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ on:
88
# Run every day to detect flakiness and broken dependencies
99
- cron: '33 2 * * *'
1010

11+
concurrency:
12+
# cancel previous runs of the same workflow, except for pushes on humble branch
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}
1115

1216
jobs:
1317
debian_source_build:
1418
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-debian-build.yml@master
15-
strategy:
16-
fail-fast: false
17-
matrix:
18-
ROS_DISTRO: [humble]
1919
with:
20-
ros_distro: ${{ matrix.ROS_DISTRO }}
21-
upstream_workspace: kinematics_interface.${{ matrix.ROS_DISTRO }}.repos
20+
ros_distro: humble
21+
upstream_workspace: kinematics_interface.humble.repos
2222
ref_for_scheduled_build: master

.github/workflows/humble-pre-commit.yml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
branches:
77
- humble
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
pre-commit:
1115
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-pre-commit.yml@master

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

+7-6
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ on:
88
# Run every day to detect flakiness and broken dependencies
99
- cron: '42 4 * * *'
1010

11+
concurrency:
12+
# cancel previous runs of the same workflow, except for pushes on humble branch
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}
15+
1116
jobs:
1217
rhel_semi_binary_build:
1318
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-rhel-binary-build.yml@master
14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
ROS_DISTRO: [humble]
1819
with:
19-
ros_distro: ${{ matrix.ROS_DISTRO }}
20-
upstream_workspace: kinematics_interface.${{ matrix.ROS_DISTRO }}.repos
20+
ros_distro: humble
21+
upstream_workspace: kinematics_interface.humble.repos
2122
ref_for_scheduled_build: master

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

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Run every morning to detect flakiness and broken dependencies
1414
- cron: '33 1 * * *'
1515

16+
concurrency:
17+
# cancel previous runs of the same workflow, except for pushes on humble branch
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}
20+
1621
jobs:
1722
semi_binary:
1823
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master

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

+7-6
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ on:
88
# Run every day to detect flakiness and broken dependencies
99
- cron: '03 3 * * *'
1010

11+
concurrency:
12+
# cancel previous runs of the same workflow, except for pushes on humble branch
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}
15+
1116
jobs:
1217
source:
1318
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-ros-tooling-source-build.yml@master
14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
ROS_DISTRO: [humble]
1819
with:
19-
ros_distro: ${{ matrix.ROS_DISTRO }}
20+
ros_distro: humble
2021
ref: master
21-
ros2_repo_branch: ${{ matrix.ROS_DISTRO }}
22+
ros2_repo_branch: humble
2223
os_name: ubuntu-22.04

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

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches:
66
- master
77

8+
concurrency:
9+
# cancel previous runs of the same workflow, except for pushes on humble branch
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}
12+
813
jobs:
914
abi_check:
1015
runs-on: ubuntu-latest

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

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ on:
1414
# Run every morning to detect flakiness and broken dependencies
1515
- cron: '03 1 * * *'
1616

17+
concurrency:
18+
# cancel previous runs of the same workflow, except for pushes on humble branch
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}
21+
1722
jobs:
1823
binary:
1924
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master

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

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
branches:
1212
- master
1313

14+
concurrency:
15+
# cancel previous runs of the same workflow, except for pushes on humble branch
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}
18+
1419
jobs:
1520
build:
1621
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master

.github/workflows/rolling-coverage-build.yml

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
branches:
99
- master
1010

11+
concurrency:
12+
# cancel previous runs of the same workflow, except for pushes on humble branch
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}
15+
1116
jobs:
1217
coverage_rolling:
1318
name: coverage build - rolling

.github/workflows/rolling-debian-build.yml

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
# Run every day to detect flakiness and broken dependencies
99
- cron: '33 2 * * *'
1010

11+
concurrency:
12+
# cancel previous runs of the same workflow, except for pushes on humble branch
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}
1115

1216
jobs:
1317
debian_source_build:

.github/workflows/rolling-pre-commit.yml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
branches:
77
- master
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
pre-commit:
1115
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-pre-commit.yml@master

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

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
# Run every day to detect flakiness and broken dependencies
99
- cron: '42 4 * * *'
1010

11+
concurrency:
12+
# cancel previous runs of the same workflow, except for pushes on humble branch
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}
1115

1216
jobs:
1317
rhel_semi_binary_build:

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

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Run every morning to detect flakiness and broken dependencies
1414
- cron: '33 1 * * *'
1515

16+
concurrency:
17+
# cancel previous runs of the same workflow, except for pushes on humble branch
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}
20+
1621
jobs:
1722
semi_binary:
1823
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master

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

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
# Run every day to detect flakiness and broken dependencies
99
- cron: '03 3 * * *'
1010

11+
concurrency:
12+
# cancel previous runs of the same workflow, except for pushes on humble branch
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}
15+
1116
jobs:
1217
source:
1318
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-ros-tooling-source-build.yml@master

0 commit comments

Comments
 (0)