[openwrt/openwrt] CI: build: make kernel build configurable
LEDE Commits
lede-commits at lists.infradead.org
Fri Dec 16 07:29:39 PST 2022
ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/dcdb0b064a5165ef1958a121228da2e02df3e576
commit dcdb0b064a5165ef1958a121228da2e02df3e576
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Wed Dec 7 14:44:34 2022 +0100
CI: build: make kernel build configurable
Make kernel build configurable to permit to introduce toolchain testing.
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
.github/workflows/build.yml | 4 ++++
.github/workflows/kernel.yml | 1 +
.github/workflows/packages.yml | 1 +
3 files changed, 6 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 783943badd..42db3669ac 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -14,6 +14,8 @@ on:
type: boolean
build_full:
type: boolean
+ build_kernel:
+ type: boolean
build_all_modules:
type: boolean
build_all_kmods:
@@ -338,11 +340,13 @@ jobs:
run: make toolchain/install -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
- name: Build Kernel
+ if: inputs.build_kernel == true
shell: su buildbot -c "sh -e {0}"
working-directory: openwrt
run: make target/compile -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
- name: Build Kernel Kmods
+ if: inputs.build_kernel == true
shell: su buildbot -c "sh -e {0}"
working-directory: openwrt
run: make package/linux/compile -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
diff --git a/.github/workflows/kernel.yml b/.github/workflows/kernel.yml
index 0fd03749f3..d886002ed1 100644
--- a/.github/workflows/kernel.yml
+++ b/.github/workflows/kernel.yml
@@ -67,6 +67,7 @@ jobs:
uses: ./.github/workflows/build.yml
with:
target: ${{ matrix.target }}
+ build_kernel: true
build_all_kmods: true
check-kernel-patches:
diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml
index 0711a98677..7bcaa2b3d3 100644
--- a/.github/workflows/packages.yml
+++ b/.github/workflows/packages.yml
@@ -38,6 +38,7 @@ jobs:
uses: ./.github/workflows/build.yml
with:
target: ${{ matrix.target }}
+ build_kernel: true
build_all_kmods: true
build_all_modules: true
build_full: true
More information about the lede-commits
mailing list