Skip to content

Commit 6d06f10

Browse files
committed
Add single-kernel workflow
In some cases it might be handy to quickly smoke test certain types of changes, where it usually doesn't make sense to build everything. So lets introduce a workflow which can build a kernel for single target/subtarget. References: openwrt/openwrt#16784 Signed-off-by: Petr Štetiar <ynezz@true.cz>
1 parent 0a3f3c9 commit 6d06f10

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build single kernel with external toolchain and check patches
2+
on:
3+
workflow_call:
4+
inputs:
5+
container_name:
6+
type: string
7+
default: toolchain
8+
target:
9+
required: true
10+
type: string
11+
subtarget:
12+
required: true
13+
type: string
14+
testing:
15+
type: boolean
16+
build_all_modules:
17+
type: boolean
18+
build_all_kmods:
19+
type: boolean
20+
build_dtb:
21+
type: boolean
22+
23+
jobs:
24+
build_kernel:
25+
name: Build kernel with external toolchain
26+
permissions:
27+
contents: read
28+
packages: read
29+
actions: write
30+
uses: ./.github/workflows/reusable_build.yml
31+
with:
32+
container_name: ${{ inputs.container_name }}
33+
target: ${{ inputs.target }}
34+
subtarget: ${{ inputs.subtarget }}
35+
testing: ${{ inputs.testing != '' && true }}
36+
build_kernel: true
37+
build_all_modules: ${{ inputs.build_all_modules != '' && true }}
38+
build_all_kmods: ${{ inputs.build_all_kmods != '' && true }}
39+
build_dtb: ${{ inputs.build_dtb != '' && true }}
40+
41+
check-kernel-patches:
42+
name: Check kernel patches
43+
permissions:
44+
contents: read
45+
packages: read
46+
actions: write
47+
uses: ./.github/workflows/reusable_check-kernel-patches.yml
48+
with:
49+
target: ${{ inputs.target }}
50+
subtarget: ${{ inputs.subtarget }}
51+
testing: ${{ inputs.testing != '' && true }}

0 commit comments

Comments
 (0)