Skip to content

Commit

Permalink
[CI] Downstream builds and setup concurrency (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich authored Dec 17, 2024
1 parent f07e6fa commit fce9adb
Show file tree
Hide file tree
Showing 10 changed files with 139 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/humble-binary-downstream-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Humble Downstream Build
# description: 'Build & test downstream packages from source.'
# author: Christoph Froehlich <christoph.froehlich@ait.ac.at>

on:
workflow_dispatch:
pull_request:
branches:
- humble

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-downstream:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master
with:
ros_distro: humble
ros_repo: testing
ref_for_scheduled_build: master
not_test_build: true
downstream_workspace: ros_controls.humble.repos
not_test_downstream: true
5 changes: 5 additions & 0 deletions .github/workflows/humble-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
# Run every morning to detect flakiness and broken dependencies
- cron: '28 6 * * *'

concurrency:
# cancel previous runs of the same workflow, except for pushes on master branch
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}

jobs:
binary:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/humble-ci-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
branches:
- humble

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
pre-commit:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-pre-commit.yml@master
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/rolling-binary-downstream-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Rolling Downstream Build
# description: 'Build & test downstream packages from source.'
# author: Christoph Froehlich <christoph.froehlich@ait.ac.at>

on:
workflow_dispatch:
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-downstream:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [jazzy, rolling]
ROS_REPO: [testing]
with:
ros_distro: ${{ matrix.ROS_DISTRO }}
ros_repo: ${{ matrix.ROS_REPO }}
ref_for_scheduled_build: master
not_test_build: true
downstream_workspace: ros_controls.${{ matrix.ROS_DISTRO }}.repos
not_test_downstream: true
5 changes: 5 additions & 0 deletions .github/workflows/rolling-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
# Run every morning to detect flakiness and broken dependencies
- cron: '28 6 * * *'

concurrency:
# cancel previous runs of the same workflow, except for pushes on master branch
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}

jobs:
binary:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-industrial-ci-with-cache.yml@master
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/rolling-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
branches:
- master

concurrency:
# cancel previous runs of the same workflow
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
pre-commit:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-pre-commit.yml@master
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/rosdoc2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- control_msgs/rosdoc2.yaml
- control_msgs/package.xml

concurrency:
# cancel previous runs of the same workflow
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
Expand Down
21 changes: 21 additions & 0 deletions ros_controls.humble.repos
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
repositories:
ros-controls/control_toolbox:
type: git
url: https://github.com/ros-controls/control_toolbox.git
version: ros2-master
ros-controls/kinematics_interface:
type: git
url: https://github.com/ros-controls/kinematics_interface.git
version: humble
ros-controls/realtime_tools:
type: git
url: https://github.com/ros-controls/realtime_tools.git
version: humble
ros-controls/ros2_control:
type: git
url: https://github.com/ros-controls/ros2_control.git
version: humble
ros-controls/ros2_controllers:
type: git
url: https://github.com/ros-controls/ros2_controllers.git
version: humble
21 changes: 21 additions & 0 deletions ros_controls.jazzy.repos
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
repositories:
ros-controls/control_toolbox:
type: git
url: https://github.com/ros-controls/control_toolbox.git
version: ros2-master
ros-controls/kinematics_interface:
type: git
url: https://github.com/ros-controls/kinematics_interface.git
version: master
ros-controls/realtime_tools:
type: git
url: https://github.com/ros-controls/realtime_tools.git
version: master
ros-controls/ros2_control:
type: git
url: https://github.com/ros-controls/ros2_control.git
version: master
ros-controls/ros2_controllers:
type: git
url: https://github.com/ros-controls/ros2_controllers.git
version: master
21 changes: 21 additions & 0 deletions ros_controls.rolling.repos
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
repositories:
ros-controls/control_toolbox:
type: git
url: https://github.com/ros-controls/control_toolbox.git
version: ros2-master
ros-controls/kinematics_interface:
type: git
url: https://github.com/ros-controls/kinematics_interface.git
version: master
ros-controls/realtime_tools:
type: git
url: https://github.com/ros-controls/realtime_tools.git
version: master
ros-controls/ros2_control:
type: git
url: https://github.com/ros-controls/ros2_control.git
version: master
ros-controls/ros2_controllers:
type: git
url: https://github.com/ros-controls/ros2_controllers.git
version: master

0 comments on commit fce9adb

Please # to comment.