-
Notifications
You must be signed in to change notification settings - Fork 24
/
action.yaml
89 lines (89 loc) · 3.29 KB
/
action.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: ROS buildfarm
description: Github Action to convert ROS packages to Debian packages
author: Jochen Sprickerhof
branding:
icon: 'package'
color: 'green'
inputs:
ROS_DISTRO:
description: The ROS distribution codename to compile for.
required: true
DEB_DISTRO:
description: The Debian/Ubuntu distribution codename to compile for.
required: true
DEB_ARCH:
description: The architecture (`amd64`, `arm64`, ...) to compile for.
required: false
REPOS_FILE:
description: Repos file with list of repositories to package.
required: false
SBUILD_CONF:
description: Additional sbuild.conf lines. For example EXTRA_REPOSITORIES,
or VERBOSE. See man sbuild.conf.
required: false
ROSDEP_SOURCE:
description: Additional rosdep sources.
required: false
SKIP_ROS_REPOSITORY:
description: Don't add packages.ros.org as an apt repository. This allows to build against snapshots.ros.org, for example.
required: false
SKIP_PACKAGES:
description: Whitespace separated list of ROS package names not to be build. Note that you need to list downstream dependencies of skipped packages in addition.
required: false
SKIP_CHECKOUT:
description: Skip checking out the repository via "actions/checkout"
required: false
default: false
GITHUB_TOKEN:
description: Set to deploy to a DEB_DISTRO-ROS_DISTRO branch in the same repo.
required: false
SQUASH_HISTORY:
description: If set to true, all previous commits on the target branch will be discarded.
required: false
default: false
PACKAGES_BRANCH:
description: If set, this branch will be used to push the packages instead of DEB_DISTRO-ROS_DISTRO.
required: false
GIT_LFS:
description: If set to true, use Git Large File Storage for storing binaries (*.deb and *.ddeb)
required: false
runs:
using: composite
steps:
- name: Check out the repo
uses: actions/checkout@v4
if: ${{ inputs.SKIP_CHECKOUT == 'false' }}
- name: Cache ccache
uses: actions/cache@v4
with:
path: /home/runner/.cache/ccache
key: ccache-${{ inputs.DEB_DISTRO }}-${{ inputs.DEB_ARCH }}-${{ inputs.ROS_DISTRO }}
- name: Setup build environment
run: $GITHUB_ACTION_PATH/prepare
shell: sh
env:
DEB_DISTRO: ${{ inputs.DEB_DISTRO }}
DEB_ARCH: ${{ inputs.DEB_ARCH }}
REPOS_FILE: ${{ inputs.REPOS_FILE }}
SBUILD_CONF: ${{ inputs.SBUILD_CONF }}
- name: Create packages
run: $GITHUB_ACTION_PATH/build
shell: sh
env:
ROS_DISTRO: ${{ inputs.ROS_DISTRO }}
DEB_DISTRO: ${{ inputs.DEB_DISTRO }}
DEB_ARCH: ${{ inputs.DEB_ARCH }}
ROSDEP_SOURCE: ${{ inputs.ROSDEP_SOURCE }}
SKIP_ROS_REPOSITORY: ${{ inputs.SKIP_ROS_REPOSITORY }}
SKIP_PACKAGES: ${{ inputs.SKIP_PACKAGES }}
- name: Create apt repository and deploy it
run: $GITHUB_ACTION_PATH/repository
shell: sh
env:
ROS_DISTRO: ${{ inputs.ROS_DISTRO }}
DEB_DISTRO: ${{ inputs.DEB_DISTRO }}
DEB_ARCH: ${{ inputs.DEB_ARCH }}
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
SQUASH_HISTORY: ${{ inputs.SQUASH_HISTORY == 'true' && 'true' || '' }}
PACKAGES_BRANCH: ${{ inputs.PACKAGES_BRANCH }}
GIT_LFS: ${{ inputs.GIT_LFS == 'true' && 'true' || '' }}