This repository is currently being migrated. It's locked while the migration is in progress.
forked from jspricke/ros-deb-builder-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yaml
96 lines (96 loc) · 3.49 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
90
91
92
93
94
95
96
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
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
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
PUBLISH_REPOSITORY:
description: If set, the repository will be used to push the packages instead of GITHUB_REPOSITORY.
required: 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
SKIP_CHECKOUT:
description: If set, checkout action is skipped
required: false
default: false
SKIP_CACHE:
description: If set, cache action is skipped
required: false
default: false
SKIP_VCS_IMPORT:
description: If set, vcs import is skipped
required: false
runs:
using: composite
steps:
- if: inputs.SKIP_CHECKOUT == 'false'
name: Check out the repo
uses: actions/checkout@v3
- if: inputs.SKIP_CACHE == 'false'
name: Cache ccache
uses: actions/cache@v3
with:
path: /home/runner/.cache/ccache
key: ccache-${{ inputs.DEB_DISTRO }}-${{ inputs.ROS_DISTRO }}
- name: Setup build environment
run: $GITHUB_ACTION_PATH/prepare
shell: sh
env:
DEB_DISTRO: ${{ inputs.DEB_DISTRO }}
REPOS_FILE: ${{ inputs.REPOS_FILE }}
SBUILD_CONF: ${{ inputs.SBUILD_CONF }}
SKIP_VCS_IMPORT: ${{ inputs.SKIP_VCS_IMPORT }}
- name: Create packages
run: $GITHUB_ACTION_PATH/build
shell: sh
env:
ROS_DISTRO: ${{ inputs.ROS_DISTRO }}
DEB_DISTRO: ${{ inputs.DEB_DISTRO }}
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 }}
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
SQUASH_HISTORY: ${{ inputs.SQUASH_HISTORY == 'true' && 'true' || '' }}
PUBLISH_REPOSITORY: ${{ inputs.PUBLISH_REPOSITORY }}
PACKAGES_BRANCH: ${{ inputs.PACKAGES_BRANCH }}
GIT_LFS: ${{ inputs.GIT_LFS == 'true' && 'true' || '' }}