CI: build: make kernel build configurable

Make kernel build configurable to permit to introduce toolchain testing.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
Christian Marangi 2022-12-07 14:44:34 +01:00
parent 819b676af0
commit dcdb0b064a
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7
3 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -67,6 +67,7 @@ jobs:
uses: ./.github/workflows/build.yml
with:
target: ${{ matrix.target }}
build_kernel: true
build_all_kmods: true
check-kernel-patches:

View File

@ -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