Skip to content

Commit b200644

Browse files
[CI] Add paths filters (#427)
1 parent 4303f5b commit b200644

35 files changed

+383
-69
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ on:
44
pull_request:
55
branches:
66
- humble
7+
paths:
8+
- '**.hpp'
9+
- '**.h'
10+
- '**.cpp'
11+
- '**.py'
12+
- '**.yaml'
13+
- '.github/workflows/humble-abi-compatibility.yml'
14+
- '**/package.xml'
15+
- '**/CMakeLists.txt'
16+
- '**.xml'
717

818
concurrency:
919
# cancel previous runs of the same workflow, except for pushes on given branches

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

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,21 @@ name: Humble Binary Build
44

55
on:
66
workflow_dispatch:
7-
pull_request:
8-
branches:
9-
- humble
10-
push:
7+
pull_request: &event
118
branches:
129
- humble
10+
paths:
11+
- '**.hpp'
12+
- '**.h'
13+
- '**.cpp'
14+
- '**.py'
15+
- '**.yaml'
16+
- '.github/workflows/humble-binary-build.yml'
17+
- '**/package.xml'
18+
- '**/CMakeLists.txt'
19+
- 'ros_controls.humble.repos'
20+
- '**.xml'
21+
push: *event
1322
schedule:
1423
# Run every morning to detect flakiness and broken dependencies
1524
- cron: '03 1 * * MON-FRI'

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,17 @@ on:
77
pull_request:
88
branches:
99
- humble
10-
push:
11-
branches:
12-
- humble
10+
paths:
11+
- '**.hpp'
12+
- '**.h'
13+
- '**.cpp'
14+
- '**.py'
15+
- '**.yaml'
16+
- '.github/workflows/humble-binary-downstream-build.yml'
17+
- '**/package.xml'
18+
- '**/CMakeLists.txt'
19+
- 'ros_controls.humble.repos'
20+
- '**.xml'
1321

1422
concurrency:
1523
# cancel previous runs of the same workflow, except for pushes on given branches

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
name: Humble Coverage Build
22
on:
33
workflow_dispatch:
4-
push:
5-
branches:
6-
- humble
7-
pull_request:
4+
pull_request: &event
85
branches:
96
- humble
7+
paths:
8+
- '**.hpp'
9+
- '**.h'
10+
- '**.cpp'
11+
- '**.py'
12+
- '**.yaml'
13+
- '.github/workflows/humble-coverage-build.yml'
14+
- '**/package.xml'
15+
- '**/CMakeLists.txt'
16+
- '**.xml'
17+
push: *event
1018

1119
concurrency:
1220
# cancel previous runs of the same workflow, except for pushes on given branches

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ on:
44
pull_request:
55
branches:
66
- humble
7+
paths:
8+
- '**.hpp'
9+
- '**.h'
10+
- '**.cpp'
11+
- '**.py'
12+
- '**.yaml'
13+
- '.github/workflows/humble-debian-build.yml'
14+
- '**/package.xml'
15+
- '**/CMakeLists.txt'
16+
- '**.xml'
717
schedule:
818
# Run every day to detect flakiness and broken dependencies
919
- cron: '33 2 * * MON-FRI'

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ on:
44
pull_request:
55
branches:
66
- humble
7+
paths:
8+
- '**.hpp'
9+
- '**.h'
10+
- '**.cpp'
11+
- '**.py'
12+
- '**.yaml'
13+
- '.github/workflows/humble-rhel-semi-binary-build.yml'
14+
- '**/package.xml'
15+
- '**/CMakeLists.txt'
16+
- '**.xml'
17+
- 'realtime_tools.humble.repos'
718
schedule:
819
# Run every day to detect flakiness and broken dependencies
920
- cron: '03 3 * * MON-FRI'
@@ -19,3 +30,4 @@ jobs:
1930
with:
2031
ros_distro: humble
2132
ref_for_scheduled_build: humble
33+
upstream_workspace: realtime_tools.humble.repos
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Humble Semi-Binary Build
2+
# author: Denis Štogl <[email protected]>
3+
# description: 'Build & test all dependencies from released (binary) packages.'
4+
5+
on:
6+
workflow_dispatch:
7+
pull_request: &event
8+
branches:
9+
- humble
10+
paths:
11+
- '**.hpp'
12+
- '**.h'
13+
- '**.cpp'
14+
- '**.py'
15+
- '**.yaml'
16+
- '.github/workflows/humble-semi-binary-build.yml'
17+
- '**/package.xml'
18+
- '**/CMakeLists.txt'
19+
- 'realtime_tools.humble.repos'
20+
- '**.xml'
21+
push: *event
22+
schedule:
23+
# Run every morning to detect flakiness and broken dependencies
24+
- cron: '03 1 * * MON-FRI'
25+
26+
concurrency:
27+
# cancel previous runs of the same workflow, except for pushes on given branches
28+
group: ${{ github.workflow }}-${{ github.ref }}
29+
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/heads') }}
30+
31+
jobs:
32+
binary:
33+
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master
34+
with:
35+
ros_distro: humble
36+
ros_repo: testing
37+
ref_for_scheduled_build: humble
38+
upstream_workspace: realtime_tools.humble.repos
39+
binary_clang:
40+
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master
41+
with:
42+
ros_distro: humble
43+
ros_repo: testing
44+
ref_for_scheduled_build: humble
45+
upstream_workspace: realtime_tools.humble.repos
46+
additional_debs: clang
47+
c_compiler: clang
48+
cxx_compiler: clang++
49+
not_test_build: true

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ on:
1313
- '.github/workflows/humble-source-build.yml'
1414
- '**/package.xml'
1515
- '**/CMakeLists.txt'
16-
- 'realtime_tools.humble.repos'
1716
- '**.xml'
1817
pull_request:
1918
branches:

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ on:
44
pull_request:
55
branches:
66
- jazzy
7+
paths:
8+
- '**.hpp'
9+
- '**.h'
10+
- '**.cpp'
11+
- '**.py'
12+
- '**.yaml'
13+
- '.github/workflows/jazzy-abi-compatibility.yml'
14+
- '**/package.xml'
15+
- '**/CMakeLists.txt'
16+
- '**.xml'
717

818
concurrency:
919
# cancel previous runs of the same workflow, except for pushes on given branches

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,20 @@ name: Jazzy Binary Build
44

55
on:
66
workflow_dispatch:
7-
pull_request:
8-
branches:
9-
- jazzy
10-
push:
7+
pull_request: &event
118
branches:
129
- jazzy
10+
paths:
11+
- '**.hpp'
12+
- '**.h'
13+
- '**.cpp'
14+
- '**.py'
15+
- '**.yaml'
16+
- '.github/workflows/jazzy-binary-build.yml'
17+
- '**/package.xml'
18+
- '**/CMakeLists.txt'
19+
- '**.xml'
20+
push: *event
1321
schedule:
1422
# Run every morning to detect flakiness and broken dependencies
1523
- cron: '03 1 * * MON-FRI'

0 commit comments

Comments
 (0)