Skip to content

Commit

Permalink
Merge pull request #2 from Interbotix/add_ci
Browse files Browse the repository at this point in the history
Add CI workflow
  • Loading branch information
lukeschmitt-tr authored Jul 25, 2024
2 parents 3d32421 + aa78683 commit 046f3e1
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main
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:
build_and_test:
strategy:
fail-fast: false
matrix:
env:
- ROS_DISTRO: humble
IMAGE: ubuntu:jammy
- ROS_DISTRO: iron
IMAGE: ubuntu:jammy
- ROS_DISTRO: jazzy
IMAGE: ubuntu:noble
- ROS_DISTRO: rolling
IMAGE: ubuntu:noble

runs-on: ubuntu-latest
container:
image: ${{ matrix.env.IMAGE }}
steps:
- uses: actions/checkout@v4
- uses: ros-tooling/setup-ros@v0.7
with:
use-ros2-testing: true
required-ros-distributions: ${{ matrix.env.ROS_DISTRO }}
- uses: ros-tooling/action-ros-ci@v0.3
with:
target-ros2-distro: ${{ matrix.env.ROS_DISTRO }}

0 comments on commit 046f3e1

Please sign in to comment.