Skip to content

Commit 3379e73

Browse files
authored
Rework CI (#696)
1 parent d96529e commit 3379e73

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name: CI
22

33
on:
4-
pull_request:
5-
paths-ignore:
6-
- 'README.md'
7-
branches:
8-
- '**'
94
workflow_call:
5+
inputs:
6+
ci_target_ref:
7+
required: true
8+
type: string
109

1110
env:
1211
ROS_DISTRO: jazzy
@@ -23,6 +22,7 @@ jobs:
2322
- uses: actions/checkout@v4
2423
with:
2524
path: src/micro_ros_setup
25+
ref: ${{ inputs.ci_target_ref }}
2626

2727
- uses: ros-tooling/[email protected]
2828
with:
@@ -61,6 +61,7 @@ jobs:
6161
- uses: actions/checkout@v4
6262
with:
6363
path: src/micro_ros_setup
64+
ref: ${{ inputs.ci_target_ref }}
6465

6566
- uses: ros-tooling/[email protected]
6667
with:
@@ -202,6 +203,7 @@ jobs:
202203
- uses: actions/checkout@v4
203204
with:
204205
path: src/micro_ros_setup
206+
ref: ${{ inputs.ci_target_ref }}
205207

206208
- uses: ros-tooling/[email protected]
207209
with:

.github/workflows/nightly.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,20 @@ jobs:
1212

1313
Jazzy:
1414
uses: micro-ROS/micro_ros_setup/.github/workflows/ci.yml@jazzy
15+
with:
16+
ci_target_ref: 'jazzy'
1517

1618
Rolling:
1719
uses: micro-ROS/micro_ros_setup/.github/workflows/ci.yml@rolling
20+
with:
21+
ci_target_ref: 'rolling'
1822

1923
Humble:
2024
uses: micro-ROS/micro_ros_setup/.github/workflows/ci.yml@humble
25+
with:
26+
ci_target_ref: 'humble'
2127

2228
Iron:
2329
uses: micro-ROS/micro_ros_setup/.github/workflows/ci.yml@iron
30+
with:
31+
ci_target_ref: 'iron'

.github/workflows/pr.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Pull Request CI
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- 'README.md'
7+
branches:
8+
- '**'
9+
10+
jobs:
11+
12+
CI:
13+
uses: ./.github/workflows/ci.yml
14+
with:
15+
ci_target_ref: ${{ github.event.pull_request.head.ref }}

0 commit comments

Comments
 (0)