forked from ichiro-its/ros2-build-debian-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
50 lines (49 loc) · 1.56 KB
/
action.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
50
name: 'ROS 2 Build Debian Package'
description: 'Build Debian packages from a ROS 2 project'
author: 'ICHIRO ITS, Greenroom Robotics'
branding:
icon: 'package'
color: 'gray-dark'
inputs:
ros2-distro:
description: 'The ROS 2 distribution to be used.'
required: false
default: 'galactic'
overlay-index:
description: 'The ROS 2 distribution overlay index to be used.'
required: false
default: ''
bloom-generate-extra-args:
description: 'Extra args to be passed to bloom-generate.'
required: false
default: ''
output-dir:
description: 'The output directory of build results.'
required: false
default: 'package'
version:
description: 'The version / debian increment.'
required: false
default: 'false'
token:
description: ''
required: false
default: ''
runs:
using: 'composite'
steps:
- name: Setup dependencies and apt/rosdep sources
run: bash ${GITHUB_ACTION_PATH}/scripts/setup-dependencies.bash
shell: bash
env:
GHCR_PAT: ${{ inputs.token }}
API_TOKEN_GITHUB: ${{ inputs.token }}
ROSDISTRO_OVERLAY_INDEX_URL: ${{ inputs.overlay-index }}
ROS2_DISTRO: ${{ inputs.ros2-distro }}
- name: Build Debian packages
run: bash ${GITHUB_ACTION_PATH}/scripts/build-debian.bash ${{ inputs.ros2-distro }} ${{ inputs.output-dir }} ${{ inputs.version }}
shell: bash
env:
GHCR_PAT: ${{ inputs.token }}
ROSDISTRO_OVERLAY_INDEX_URL: ${{ inputs.overlay-index }}
BLOOM_GENERATE_EXTRA_ARGS: ${{ inputs.bloom-generate-extra-args }}