Skip to content

Commit 39abecf

Browse files
Carlosespicurmergify[bot]
authored andcommitted
Update CI (#43)
* Add CI and nightly for each distro Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Update git version Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Skip tests Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Change nightly to weekly * Change master to rolling in fork checker Signed-off-by: Carlosespicur <carlosespicur@proton.me> --------- Signed-off-by: Carlosespicur <carlosespicur@proton.me> (cherry picked from commit 8f32223) # Conflicts: # .github/workflows/fork_checker.yml
1 parent 5fa0987 commit 39abecf

File tree

7 files changed

+161
-0
lines changed

7 files changed

+161
-0
lines changed

.github/workflows/fork_checker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17+
<<<<<<< HEAD
1718
branches: [foxy, galactic, humble, master]
19+
=======
20+
branches: [humble, jazzy, kilted, rolling]
21+
>>>>>>> 8f32223 (Update CI (#43))
1822
steps:
1923
- name: Check
2024
id: check

.github/workflows/humble-ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: rcutils CI Humble
2+
3+
on:
4+
push:
5+
branches: [ humble ]
6+
pull_request:
7+
branches: [ humble ]
8+
9+
jobs:
10+
humble-ci:
11+
uses: ./.github/workflows/reusable-ci.yml
12+
with:
13+
branch: ${{ github.ref }}
14+
os: ubuntu-22.04
15+
docker-image: ubuntu:jammy
16+
ros-distribution: humble

.github/workflows/jazzy-ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: rcutils CI Jazzy
2+
3+
on:
4+
push:
5+
branches: [ jazzy ]
6+
pull_request:
7+
branches: [ jazzy ]
8+
9+
jobs:
10+
jazzy-ci:
11+
uses: ./.github/workflows/reusable-ci.yml
12+
with:
13+
branch: ${{ github.ref }}
14+
os: ubuntu-24.04
15+
docker-image: ubuntu:noble
16+
ros-distribution: jazzy

.github/workflows/kilted-ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: rcutils CI Kilted
2+
3+
on:
4+
push:
5+
branches: [ kilted ]
6+
pull_request:
7+
branches: [ kilted ]
8+
9+
jobs:
10+
kilted-ci:
11+
uses: ./.github/workflows/reusable-ci.yml
12+
with:
13+
branch: ${{ github.ref }}
14+
os: ubuntu-24.04
15+
docker-image: ubuntu:noble
16+
ros-distribution: kilted

.github/workflows/reusable-ci.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Reusable rcutils CI
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
branch:
7+
description: "The rcutils branch to use for the workflow"
8+
required: true
9+
type: string
10+
os:
11+
description: "The OS to use for the workflow"
12+
required: true
13+
type: string
14+
docker-image:
15+
description: "The docker image to use for the workflow"
16+
required: true
17+
type: string
18+
ros-distribution:
19+
description: "The ROS distribution to use for the workflow"
20+
required: true
21+
type: string
22+
23+
jobs:
24+
build:
25+
runs-on: ${{ inputs.os }}
26+
strategy:
27+
fail-fast: false
28+
container:
29+
image: ${{ inputs.docker-image }}
30+
steps:
31+
32+
- run: |
33+
apt-get update && apt-get install -y git
34+
shell: bash
35+
36+
- name: Sync repository
37+
uses: actions/checkout@v5
38+
with:
39+
ref: ${{ inputs.branch }}
40+
submodules: recursive
41+
42+
- name: Setup ROS 2
43+
uses: ros-tooling/setup-ros@0.7.15
44+
with:
45+
required-ros-distributions: ${{ inputs.ros-distribution }}
46+
47+
- name : Download and install rcutils-dependencies
48+
run: |
49+
apt-get install ros-${{ inputs.ros-distribution }}-mimick-vendor
50+
apt-get -y install ros-${{ inputs.ros-distribution }}-performance-test-fixture
51+
52+
- uses : ros-tooling/action-ros-ci@0.4.5
53+
with:
54+
package-name: "rcutils"
55+
target-ros2-distro: ${{ inputs.ros-distribution }}
56+
skip-tests: true

.github/workflows/rolling-ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: rcutils CI Rolling
2+
3+
on:
4+
push:
5+
branches: [ rolling ]
6+
pull_request:
7+
branches: [ rolling ]
8+
9+
jobs:
10+
rolling-ci:
11+
uses: ./.github/workflows/reusable-ci.yml
12+
with:
13+
branch: ${{ github.ref }}
14+
os: ubuntu-24.04
15+
docker-image: ubuntu:noble
16+
ros-distribution: rolling

.github/workflows/weekly-ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: rcutils weekly CI (all distributions)
2+
3+
on:
4+
schedule:
5+
# Run once per week to detect broken dependencies.
6+
- cron: '59 23 * * 0'
7+
workflow_dispatch:
8+
9+
jobs:
10+
humble-ci:
11+
uses: ./.github/workflows/reusable-ci.yml
12+
with:
13+
branch: humble
14+
os: ubuntu-22.04
15+
docker-image: ubuntu:jammy
16+
ros-distribution: humble
17+
jazzy-ci:
18+
uses: ./.github/workflows/reusable-ci.yml
19+
with:
20+
branch: jazzy
21+
os: ubuntu-24.04
22+
docker-image: ubuntu:noble
23+
ros-distribution: jazzy
24+
kilted-ci:
25+
uses: ./.github/workflows/reusable-ci.yml
26+
with:
27+
branch: kilted
28+
os: ubuntu-24.04
29+
docker-image: ubuntu:noble
30+
ros-distribution: kilted
31+
rolling-ci:
32+
uses: ./.github/workflows/reusable-ci.yml
33+
with:
34+
branch: rolling
35+
os: ubuntu-24.04
36+
docker-image: ubuntu:noble
37+
ros-distribution: rolling

0 commit comments

Comments
 (0)