Skip to content

Commit 352f860

Browse files
authored
Update build-kernel.yml
1 parent cb25ff7 commit 352f860

File tree

1 file changed

+36
-7
lines changed

1 file changed

+36
-7
lines changed

.github/workflows/build-kernel.yml

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,64 @@ on:
66
lto_type:
77
description: 'Choose LTO type (thin/full)'
88
required: true
9-
default: 'thin'
9+
default: 'full'
1010
type: choice
1111
options:
1212
- thin
1313
- full
1414
build_android_12:
1515
description: 'Build Android 12 GKI Kernel?'
16-
required: false # User interaction is optional
16+
required: false
1717
default: true # Defaults to building Android 12
1818
type: boolean
1919
build_android_13:
2020
description: 'Build Android 13 GKI Kernel?'
21-
required: false # User interaction is optional
21+
required: false
2222
default: true # Defaults to building Android 13
2323
type: boolean
2424
build_android_14:
2525
description: 'Build Android 14 GKI Kernel?'
26-
required: false # User interaction is optional
26+
required: false
2727
default: true # Defaults to building Android 14
2828
type: boolean
2929
make_release:
3030
description: 'Trigger release after the build?'
31-
required: false # User interaction is optional
31+
required: false
3232
default: true # Defaults to not triggering a release
3333
type: boolean
3434

35-
# Trigger when there is a push to the 'main' branch
3635
push:
3736
branches:
3837
- main
38+
inputs:
39+
lto_type:
40+
description: 'Choose LTO type (thin/full)'
41+
required: true
42+
default: 'thin'
43+
type: choice
44+
options:
45+
- thin
46+
- full
47+
build_android_12:
48+
description: 'Build Android 12 GKI Kernel?'
49+
required: false
50+
default: true # Defaults to building Android 12
51+
type: boolean
52+
build_android_13:
53+
description: 'Build Android 13 GKI Kernel?'
54+
required: false
55+
default: true # Defaults to building Android 13
56+
type: boolean
57+
build_android_14:
58+
description: 'Build Android 14 GKI Kernel?'
59+
required: false
60+
default: true # Defaults to building Android 14
61+
type: boolean
62+
make_release:
63+
description: 'Trigger release after the build?'
64+
required: false
65+
default: false # Defaults to not triggering a release
66+
type: boolean
3967

4068
jobs:
4169
# Validation Step
@@ -44,9 +72,10 @@ jobs:
4472
steps:
4573
- name: Validate Inputs
4674
run: |
47-
if [ "${{ inputs.build_android_12 }}" != true ] && [ "${{ inputs.build_android_13 }}" != true ] && [ "${{ inputs.build_android_14 }}" != true ]; then
75+
if [ "${{ inputs.build_android_12 }}" != "true" ] && [ "${{ inputs.build_android_13 }}" != "true" ] && [ "${{ inputs.build_android_14 }}" != "true" ]; then
4876
echo "At least one kernel build must be selected!"
4977
exit 1
78+
fi
5079
5180
# Build Android 12 GKI Kernel
5281
build-kernel-a12:

0 commit comments

Comments
 (0)