Skip to content

Commit ca76f61

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 ca76f61

File tree

1 file changed

+56
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)