-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.13 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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/[email protected]
with:
use-ros2-testing: true
required-ros-distributions: ${{ matrix.env.ROS_DISTRO }}
- uses: ros-tooling/[email protected]
with:
target-ros2-distro: ${{ matrix.env.ROS_DISTRO }}