Skip to content

Commit

Permalink
[CI] reusable workflows from ros2_control_ci (#444)
Browse files Browse the repository at this point in the history
* Use reviewer database from ros2_control_ci

* Use industrial_ci from ros2_control_ci

* Also update semi-binary workflows

* fail-fast: false

* Use reviewer lottery from ros2_control_ci
  • Loading branch information
christophfroehlich authored Feb 17, 2024
1 parent c9742eb commit c810999
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 167 deletions.
33 changes: 0 additions & 33 deletions .github/reviewer-lottery.yml

This file was deleted.

12 changes: 9 additions & 3 deletions .github/workflows/humble-binary-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ on:

jobs:
binary:
uses: ./.github/workflows/reusable-industrial-ci-with-cache.yml
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: humble
upstream_workspace: ros2_control_demos-not-released.humble.repos
ros_distro: ${{ matrix.ROS_DISTRO }}
ros_repo: ${{ matrix.ROS_REPO }}
upstream_workspace: ros2_control_demos-not-released.${{ matrix.ROS_DISTRO }}.repos
ref_for_scheduled_build: humble
12 changes: 9 additions & 3 deletions .github/workflows/humble-semi-binary-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ on:

jobs:
semi_binary:
uses: ./.github/workflows/reusable-industrial-ci-with-cache.yml
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: humble
upstream_workspace: ros2_control_demos.humble.repos
ros_distro: ${{ matrix.ROS_DISTRO }}
ros_repo: ${{ matrix.ROS_REPO }}
upstream_workspace: ros2_control_demos.${{ matrix.ROS_DISTRO }}.repos
ref_for_scheduled_build: humble
14 changes: 10 additions & 4 deletions .github/workflows/iron-binary-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ on:

jobs:
binary:
uses: ./.github/workflows/reusable-industrial-ci-with-cache.yml
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [iron]
ROS_REPO: [main, testing]
with:
ros_distro: iron
upstream_workspace: ros2_control_demos-not-released.iron.repos
ref_for_scheduled_build: master
ros_distro: ${{ matrix.ROS_DISTRO }}
ros_repo: ${{ matrix.ROS_REPO }}
upstream_workspace: ros2_control_demos-not-released.${{ matrix.ROS_DISTRO }}.repos
ref_for_scheduled_build: iron
14 changes: 10 additions & 4 deletions .github/workflows/iron-semi-binary-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ on:

jobs:
semi_binary:
uses: ./.github/workflows/reusable-industrial-ci-with-cache.yml
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [iron]
ROS_REPO: [main, testing]
with:
ros_distro: iron
upstream_workspace: ros2_control_demos.iron.repos
ref_for_scheduled_build: master
ros_distro: ${{ matrix.ROS_DISTRO }}
ros_repo: ${{ matrix.ROS_REPO }}
upstream_workspace: ros2_control_demos.${{ matrix.ROS_DISTRO }}.repos
ref_for_scheduled_build: iron
106 changes: 0 additions & 106 deletions .github/workflows/reusable-industrial-ci-with-cache.yml

This file was deleted.

12 changes: 4 additions & 8 deletions .github/workflows/reviewer_lottery.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
name: Reviewer lottery
# pull_request_target takes the same events as pull_request,
# but it runs on the base branch instead of the head branch.
on:
pull_request_target:
types: [opened, ready_for_review, reopened]

jobs:
reviewer-lottery:
runs-on: ubuntu-latest
if: ${{ ! contains(fromJSON('["dependabot[bot]", "mergify[bot]"]'), github.actor) }}
steps:
- uses: actions/checkout@v4
- uses: uesteibar/reviewer-lottery@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
assign_reviewers:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-reviewer-lottery.yml@master
12 changes: 9 additions & 3 deletions .github/workflows/rolling-binary-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ on:

jobs:
binary:
uses: ./.github/workflows/reusable-industrial-ci-with-cache.yml
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [rolling]
ROS_REPO: [main, testing]
with:
ros_distro: rolling
upstream_workspace: ros2_control_demos-not-released.rolling.repos
ros_distro: ${{ matrix.ROS_DISTRO }}
ros_repo: ${{ matrix.ROS_REPO }}
upstream_workspace: ros2_control_demos-not-released.${{ matrix.ROS_DISTRO }}.repos
ref_for_scheduled_build: master
12 changes: 9 additions & 3 deletions .github/workflows/rolling-semi-binary-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ on:

jobs:
semi_binary:
uses: ./.github/workflows/reusable-industrial-ci-with-cache.yml
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [rolling]
ROS_REPO: [main, testing]
with:
ros_distro: rolling
upstream_workspace: ros2_control_demos.rolling.repos
ros_distro: ${{ matrix.ROS_DISTRO }}
ros_repo: ${{ matrix.ROS_REPO }}
upstream_workspace: ros2_control_demos.${{ matrix.ROS_DISTRO }}.repos
ref_for_scheduled_build: master

0 comments on commit c810999

Please sign in to comment.