-
Notifications
You must be signed in to change notification settings - Fork 280
49 lines (45 loc) · 1.31 KB
/
ros2_ci_build_and_test.yml
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
45
46
47
48
49
name: ROS2 CI
on:
pull_request:
branches:
- 'ros2'
jobs:
test_environment:
runs-on: [ubuntu-latest]
strategy:
fail-fast: false
matrix:
ros_distribution:
- humble
- iron
- rolling
include:
# Humble Hawksbill (May 2022 - May 2027)
- os: ubuntu-22.04
ros_distribution: humble
ros_version: 2
# Iron Irwini (May 2023 - November 2024)
- os: ubuntu-22.04
ros_distribution: iron
ros_version: 2
# Rolling Ridley (June 2020 - Present)
- os: ubuntu-22.04
ros_distribution: rolling
ros_version: 2
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.ros_distribution == 'rolling' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Search packages in this repository
id: list_packages
run: |
echo ::set-output name=package_list::$(colcon list --names-only)
- name: build and test
uses: ros-tooling/[email protected]
with:
package-name: ${{ steps.list_packages.outputs.package_list }}
target-ros2-distro: ${{ matrix.ros_distribution }}
vcs-repo-file-url: build_depends.repos