forked from ros2/rcutils
-
Notifications
You must be signed in to change notification settings - Fork 16
56 lines (49 loc) · 1.44 KB
/
reusable-ci.yml
File metadata and controls
56 lines (49 loc) · 1.44 KB
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
50
51
52
53
54
55
56
name: Reusable rcutils CI
on:
workflow_call:
inputs:
branch:
description: "The rcutils branch to use for the workflow"
required: true
type: string
os:
description: "The OS to use for the workflow"
required: true
type: string
docker-image:
description: "The docker image to use for the workflow"
required: true
type: string
ros-distribution:
description: "The ROS distribution to use for the workflow"
required: true
type: string
jobs:
build:
runs-on: ${{ inputs.os }}
strategy:
fail-fast: false
container:
image: ${{ inputs.docker-image }}
steps:
- run: |
apt-get update && apt-get install -y git
shell: bash
- name: Sync repository
uses: actions/checkout@v5
with:
ref: ${{ inputs.branch }}
submodules: recursive
- name: Setup ROS 2
uses: ros-tooling/setup-ros@0.7.15
with:
required-ros-distributions: ${{ inputs.ros-distribution }}
- name : Download and install rcutils-dependencies
run: |
apt-get install ros-${{ inputs.ros-distribution }}-mimick-vendor
apt-get -y install ros-${{ inputs.ros-distribution }}-performance-test-fixture
- uses : ros-tooling/action-ros-ci@0.4.5
with:
package-name: "rcutils"
target-ros2-distro: ${{ inputs.ros-distribution }}
skip-tests: true