Skip to content

Commit

Permalink
[.github] Add general ROS 2 workflows (#58)
Browse files Browse the repository at this point in the history
Add general ROS 2 workflows
  • Loading branch information
lukeschmitt-tr authored Oct 9, 2024
1 parent e2ffad9 commit b3c7ac2
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/iron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build-iron

on:
push:
branches:
- iron
pull_request:
branches:
- iron
workflow_dispatch:

# Limit jobs run by PRs or branches by cancelling ongoing jobs
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-concurrency-and-the-default-behavior
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
iron:
strategy:
matrix:
env:
- {ROS_DISTRO: iron, ROS_REPO: main}
- {ROS_DISTRO: iron, ROS_REPO: testing}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Prepare Workspace
run: |
rm \
interbotix_ros_common_drivers/COLCON_IGNORE \
interbotix_ros_slate/COLCON_IGNORE \
interbotix_ros_xseries/COLCON_IGNORE
- uses: ros-industrial/industrial_ci@master
env: ${{matrix.env}}
37 changes: 37 additions & 0 deletions .github/workflows/jazzy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build-jazzy

on:
push:
branches:
- jazzy
pull_request:
branches:
- jazzy
workflow_dispatch:

# Limit jobs run by PRs or branches by cancelling ongoing jobs
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-concurrency-and-the-default-behavior
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
jazzy:
strategy:
matrix:
env:
- {ROS_DISTRO: jazzy, ROS_REPO: main}
- {ROS_DISTRO: jazzy, ROS_REPO: testing}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Prepare Workspace
run: |
rm \
interbotix_ros_common_drivers/COLCON_IGNORE \
interbotix_ros_slate/COLCON_IGNORE \
interbotix_ros_xseries/COLCON_IGNORE
- uses: ros-industrial/industrial_ci@master
env: ${{matrix.env}}
37 changes: 37 additions & 0 deletions .github/workflows/rolling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build-rolling

on:
push:
branches:
- rolling
pull_request:
branches:
- rolling
workflow_dispatch:

# Limit jobs run by PRs or branches by cancelling ongoing jobs
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-concurrency-and-the-default-behavior
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
rolling:
strategy:
matrix:
env:
- {ROS_DISTRO: rolling, ROS_REPO: main}
- {ROS_DISTRO: rolling, ROS_REPO: testing}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Prepare Workspace
run: |
rm \
interbotix_ros_common_drivers/COLCON_IGNORE \
interbotix_ros_slate/COLCON_IGNORE \
interbotix_ros_xseries/COLCON_IGNORE
- uses: ros-industrial/industrial_ci@master
env: ${{matrix.env}}

0 comments on commit b3c7ac2

Please sign in to comment.