Skip to content

Commit

Permalink
Rework CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogs9 committed Jun 3, 2024
1 parent d96529e commit 05e4ccb
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: CI

on:
pull_request:
paths-ignore:
- 'README.md'
branches:
- '**'
workflow_call:
inputs:
ci_target_ref:
required: true
type: string

env:
ROS_DISTRO: jazzy
Expand All @@ -23,6 +22,7 @@ jobs:
- uses: actions/checkout@v4
with:
path: src/micro_ros_setup
ref: ${{ inputs.ci_target_ref }}

- uses: ros-tooling/[email protected]
with:
Expand Down Expand Up @@ -61,6 +61,7 @@ jobs:
- uses: actions/checkout@v4
with:
path: src/micro_ros_setup
ref: ${{ inputs.ci_target_ref }}

- uses: ros-tooling/[email protected]
with:
Expand Down Expand Up @@ -202,6 +203,7 @@ jobs:
- uses: actions/checkout@v4
with:
path: src/micro_ros_setup
ref: ${{ inputs.ci_target_ref }}

- uses: ros-tooling/[email protected]
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@ jobs:

Jazzy:
uses: micro-ROS/micro_ros_setup/.github/workflows/ci.yml@jazzy
with:
ci_target_ref: 'jazzy'

Rolling:
uses: micro-ROS/micro_ros_setup/.github/workflows/ci.yml@rolling
with:
ci_target_ref: 'rolling'

Humble:
uses: micro-ROS/micro_ros_setup/.github/workflows/ci.yml@humble
with:
ci_target_ref: 'humble'

Iron:
uses: micro-ROS/micro_ros_setup/.github/workflows/ci.yml@iron
with:
ci_target_ref: 'iron'
15 changes: 15 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Pull Request CI

on:
pull_request:
paths-ignore:
- 'README.md'
branches:
- '**'

jobs:

CI:
uses: micro-ROS/micro_ros_setup/.github/workflows/ci.yml@${{ github.event.pull_request.head.ref }}
with:
ci_target_ref: ${{ github.event.pull_request.head.ref }}

0 comments on commit 05e4ccb

Please sign in to comment.