Skip to content

Commit

Permalink
[CI] Renew workflows (#25)
Browse files Browse the repository at this point in the history
* Use matrix strategy for main+testing and fix some issues

* Add iron workflows

* Fix newline at end of file

* Compile ros2_control_test_assets in not-binary builds

* Use correct version of ros2_control

* Update README

* Update lint job

* Source underlay for RHEL builds

* Fix default branch for scheduled workflows

* Fix branch for humble workflows

* Add reviewer lottery

* Use reusable workflows from ros2_control_ci and cleanup

* Update readme

* Update readme
  • Loading branch information
christophfroehlich authored Feb 14, 2024
1 parent 111c633 commit bed7a1b
Show file tree
Hide file tree
Showing 33 changed files with 298 additions and 451 deletions.
33 changes: 33 additions & 0 deletions .github/reviewer-lottery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
groups:
# Default reviewers for all pull requests.
# Usually, at least on of the maintainers should approve PR before merging.
# The best is if two maintainers do that.
- name: maintainers # name of the group
reviewers: 2 # how many reviewers do you want to assign?
internal_reviewers: 1 # how many reviewers do you want to assign when the PR author belongs to this group?
usernames: # github usernames of the reviewers
- bmagyar
- destogl

# Reviewers group to get broader feedback.
- name: reviewers
reviewers: 5
usernames:
- aprotyas
- arne48
- bijoua29
- christophfroehlich
- DasRoteSkelett
- duringhof
- erickisos
- fmauch
- jaron-l
- livanov93
- mcbed
- moriarty
- olivier-stasse
- peterdavidfagan
- progtologist
- saikishor
- VanshGehlot
- VX792
2 changes: 0 additions & 2 deletions .github/workflows/ci-coverage-build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Coverage Build
on:
workflow_dispatch:
branches:
- master
pull_request:
branches:
- master
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ci-ros-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ on:
jobs:
ament_lint:
name: ament_${{ matrix.linter }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
linter: [cppcheck, copyright, lint_cmake]
env:
AMENT_CPPCHECK_ALLOW_SLOW_VERSIONS: true
steps:
- uses: actions/checkout@v4
- uses: ros-tooling/[email protected]
Expand All @@ -19,11 +21,12 @@ jobs:
linter: ${{ matrix.linter }}
package-name:
kinematics_interface_kdl
kinematics_interface


ament_lint_100:
name: ament_${{ matrix.linter }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/humble-abi-compatibility.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Humble - ABI Compatibility Check
on:
workflow_dispatch:
branches:
- master
pull_request:
branches:
- master
- humble

jobs:
abi_check:
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/humble-binary-build-main.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/humble-binary-build-testing.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/humble-binary-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Humble Binary Build
# author: Denis Štogl <[email protected]>
# description: 'Build & test all dependencies from released (binary) packages.'

on:
workflow_dispatch:
pull_request:
branches:
- humble
push:
branches:
- humble
schedule:
# Run every morning to detect flakiness and broken dependencies
- cron: '03 1 * * *'

jobs:
binary:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [humble]
ROS_REPO: [main, testing]
with:
ros_distro: ${{ matrix.ROS_DISTRO }}
ros_repo: ${{ matrix.ROS_REPO }}
upstream_workspace: kinematics_interface-not-released.${{ matrix.ROS_DISTRO }}.repos
ref_for_scheduled_build: master
22 changes: 22 additions & 0 deletions .github/workflows/humble-debian-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Debian Humble Build
on:
workflow_dispatch:
pull_request:
branches:
- humble
schedule:
# Run every day to detect flakiness and broken dependencies
- cron: '33 2 * * *'


jobs:
debian_source_build:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-debian-build.yml@master
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [humble]
with:
ros_distro: ${{ matrix.ROS_DISTRO }}
upstream_workspace: kinematics_interface.${{ matrix.ROS_DISTRO }}.repos
ref_for_scheduled_build: master
33 changes: 0 additions & 33 deletions .github/workflows/humble-rhel-binary-build.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/humble-rhel-semi-binary-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: RHEL Humble Semi-Binary Build
on:
workflow_dispatch:
pull_request:
branches:
- humble
schedule:
# Run every day to detect flakiness and broken dependencies
- cron: '42 4 * * *'

jobs:
rhel_semi_binary_build:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-rhel-binary-build.yml@master
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [humble]
with:
ros_distro: ${{ matrix.ROS_DISTRO }}
upstream_workspace: kinematics_interface.${{ matrix.ROS_DISTRO }}.repos
ref_for_scheduled_build: master
25 changes: 0 additions & 25 deletions .github/workflows/humble-semi-binary-build-main.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/humble-semi-binary-build-testing.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/humble-semi-binary-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Humble Semi-Binary Build
# description: 'Build & test that compiles the main dependencies from source.'

on:
workflow_dispatch:
pull_request:
branches:
- humble
push:
branches:
- humble
schedule:
# Run every morning to detect flakiness and broken dependencies
- cron: '33 1 * * *'

jobs:
semi_binary:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [humble]
ROS_REPO: [main, testing]
with:
ros_distro: ${{ matrix.ROS_DISTRO }}
ros_repo: ${{ matrix.ROS_REPO }}
upstream_workspace: kinematics_interface.${{ matrix.ROS_DISTRO }}.repos
ref_for_scheduled_build: master
14 changes: 8 additions & 6 deletions .github/workflows/humble-source-build.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
name: Humble Source Build
on:
workflow_dispatch:
branches:
- master
push:
branches:
- master
- humble
schedule:
# Run every day to detect flakiness and broken dependencies
- cron: '03 3 * * *'

jobs:
source:
uses: ./.github/workflows/reusable-ros-tooling-source-build.yml
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-ros-tooling-source-build.yml@master
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [humble]
with:
ros_distro: humble
ros_distro: ${{ matrix.ROS_DISTRO }}
ref: master
ros2_repo_branch: master-humble
ros2_repo_branch: ${{ matrix.ROS_DISTRO }}
Loading

0 comments on commit bed7a1b

Please sign in to comment.