-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
91 lines (87 loc) · 2.83 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
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
# Basic information for the custom GitHub Action.
name: 'CB1 Kernel Builder'
description: 'Builds the BIGTREETECH CB1 linux kernel.'
author: 'Didstopia'
## TODO: Change the branding at some point
# Branding for the custom GitHub Action.
branding:
icon: 'globe'
color: 'green'
# The inputs for the custom GitHub Action.
inputs:
repo:
description: 'The kernel git repository to clone.'
required: true
default: 'github.com/bigtreetech/CB1-Kernel'
branch:
description: 'The kernel git repository branch to clone.'
required: true
default: 'kernel-5.16'
build-path:
description: 'The path to store build files in.'
required: true
default: '/build'
output-path:
description: 'The path to store the output files in.'
required: true
default: '/output'
target-board:
description: 'The target board to build for.'
required: true
default: 'h616'
target-branch:
description: 'The target branch to build for.'
required: true
default: 'current'
target-build-option:
description: 'The target build option to use.'
required: true
default: 'kernel'
target-release:
description: 'The target release to build for.'
required: true
default: 'bullseye'
target-kernel-configure:
description: 'Whether or not to configure the target kernel.'
required: true
default: 'no'
target-manual-kernel-configure:
description: 'Whether or not to manually configure the target kernel.'
required: true
default: 'no'
target-kernel-export-defconfig:
description: 'Whether or not to export the target kernel defconfig.'
required: true
default: 'yes'
only-detect-kernel-version:
description: 'Whether or not to only detect the kernel version.'
required: true
default: 'no'
# The outputs for the custom GitHub Action.
outputs:
revision: # id of output
description: 'The BTT CB1 kernel revision. (eg. "2.3.2")'
# Define how to run the custom GitHub Action.
runs:
using: 'docker'
# image: 'Dockerfile'
# image: 'docker://ghcr.io/didstopia/cb1-kernel-builder:latest'
image: 'docker://ghcr.io/didstopia/cb1-kernel-builder:master'
# args:
# - ${{ inputs.token }}
# Pass the inputs to the Docker container.
env:
#
CB1_KERNEL_REPO: ${{ inputs.repo }}
CB1_KERNEL_BRANCH: ${{ inputs.branch }}
CB1_BUILD_DIR: ${{ inputs.build-path }}
CB1_OUTPUT_DIR: ${{ inputs.output-path }}
#
BOARD: ${{ inputs.target-board }}
BRANCH: ${{ inputs.target-branch }}
BUILD_OPT: ${{ inputs.target-build-option }}
RELEASE: ${{ inputs.target-release }}
KERNEL_CONFIGURE: ${{ inputs.target-kernel-configure }}
MANUAL_KERNEL_CONFIGURE: ${{ inputs.target-manual-kernel-configure }}
KERNEL_EXPORT_DEFCONFIG: ${{ inputs.target-kernel-export-defconfig }}
CB1_ONLY_DETECT_KERNEL_VERSION: ${{ inputs.only-detect-kernel-version }}