Skip to content

Commit 6b503ad

Browse files
committed
hack: make flavor selection into a env option
1 parent 589b8dd commit 6b503ad

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Build
33
on:
44
workflow_dispatch:
55
inputs:
6-
minimal:
7-
description: 'Build minimal defconfigs'
6+
flavor:
7+
description: 'Optional build flavor (e.g. _minimal)'
88
required: false
9-
default: true
10-
type: boolean
9+
default: ''
10+
type: string
1111
parallell:
1212
description: 'Massive parallel build of each image'
1313
required: false
@@ -28,20 +28,19 @@ on:
2828
name:
2929
required: true
3030
type: string
31-
minimal:
31+
flavor:
3232
required: false
33-
type: boolean
34-
default: true
33+
type: string
34+
default: ''
3535
infix_repo:
3636
required: false
3737
type: string
3838
default: kernelkit/infix
3939

4040
env:
41-
MINIMAL: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.minimal || inputs.minimal }}
41+
FLV: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.flavor || inputs.flavor }}
4242
INFIX_REPO: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.infix_repo || inputs.infix_repo }}
4343

44-
4544
jobs:
4645
build:
4746
name: Build ${{ inputs.name }} ${{ inputs.target }}
@@ -81,18 +80,12 @@ jobs:
8180
| tee -a $GITHUB_OUTPUT $GITHUB_ENV
8281
fi
8382
84-
if [ "${MINIMAL}" == "true" ]; then
85-
flavor="_minimal"
86-
else
87-
flavor=""
88-
fi
89-
9083
target=${{ inputs.target }}
9184
name=${{ inputs.name }}
9285
echo "dir=${name}-${target}" >> $GITHUB_OUTPUT
9386
echo "tgz=${name}-${target}.tar.gz" >> $GITHUB_OUTPUT
94-
echo "flv=$flavor" >> $GITHUB_OUTPUT
95-
echo "Building target ${target}${flavor}_defconfig"
87+
echo "flv=$FLV" >> $GITHUB_OUTPUT
88+
echo "Building target ${target}${FLV}_defconfig"
9689
9790
- name: Restore Cache of dl/
9891
uses: actions/cache@v4

0 commit comments

Comments
 (0)