-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (38 loc) · 1.16 KB
/
ci_ros2.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
name: Ubuntu20.04, ROS2 Continuous Integration
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
include:
- ros_version: "humble"
ubuntu_version: "ubuntu-22.04"
# - ros_version: "iron"
# ubuntu_version: "ubuntu-22.04"
runs-on: ${{ matrix.ubuntu_version }}
steps:
#
# Checkout the current branch. Only used to get the deps.repos file.
# The last step here re-clone the repo at the right place.
#
- uses: actions/checkout@v4
#
# Use the .repos inside the cloned repository.
#
- run: |
cp ../${{ github.event.repository.name }}/.github/workflows/deps.repos /tmp/deps.repos
#
# Setup the machines and build environment
#
- name: Install ROS.
uses: ros-tooling/[email protected]
with:
required-ros-distributions: ${{ matrix.ros_version }}
#
# Build and test the repo
#
- uses: ros-tooling/[email protected]
with:
package-name: linear_feedback_controller
target-ros2-distro: ${{ matrix.ros_version }}
vcs-repo-file-url: /tmp/deps.repos