CI: build: make kernel build configurable
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 7 Dec 2022 13:44:34 +0000 (14:44 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 16 Dec 2022 15:29:36 +0000 (16:29 +0100)
Make kernel build configurable to permit to introduce toolchain testing.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
.github/workflows/build.yml
.github/workflows/kernel.yml
.github/workflows/packages.yml

index 783943badd996d60e505d577175e345b562a8402..42db3669acee1927d5343c45d2209f73a30f3517 100644 (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
index 0fd03749f3a88efc6dffeee53de173b8e0d2bf87..d886002ed1641411f777a02db68fe1cb7499c938 100644 (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:
index 0711a9867725f007cf4872da4b46935a23b0ea46..7bcaa2b3d335664ef2b12240779241f445dcc7bc 100644 (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