Skip to content

Commit

Permalink
Use matrix strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Apr 24, 2024
1 parent a3a5ac6 commit c27cd0f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,19 @@ jobs:
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [rolling, iron, humble]
include:
- ROS_DISTRO: humble
CONTAINER: ""
OS_NAME: ubuntu-22.04
- ROS_DISTRO: iron
CONTAINER: ""
OS_NAME: ubuntu-22.04
- ROS_DISTRO: rolling
CONTAINER: ubuntu:24.04
OS_NAME: ubuntu-latest
with:
ros_distro: ${{ matrix.ROS_DISTRO }}
ref: ros2-master
ros2_repo_branch: ${{ matrix.ROS_DISTRO }}
container: ubuntu:24.04
os_name: ${{ matrix.OS_NAME }}
container: ${{ matrix.CONTAINER }}
20 changes: 12 additions & 8 deletions .github/workflows/ci-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ jobs:
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [iron, humble]
include:
- ROS_DISTRO: humble
CONTAINER: ""
OS_NAME: ubuntu-22.04
- ROS_DISTRO: iron
CONTAINER: ""
OS_NAME: ubuntu-22.04
- ROS_DISTRO: rolling
CONTAINER: ubuntu:24.04
OS_NAME: ubuntu-latest
with:
ros_distro: ${{ matrix.ROS_DISTRO }}
os_name: ubuntu-22.04

pre-commit-rolling:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-pre-commit.yml@master
with:
ros_distro: rolling
container: ubuntu:24.04
os_name: ${{ matrix.OS_NAME }}
container: ${{ matrix.CONTAINER }}

0 comments on commit c27cd0f

Please sign in to comment.