소스 검색

CI: build: make kernel build configurable

Make kernel build configurable to permit to introduce toolchain testing.

Signed-off-by: Christian Marangi <[email protected]>
Christian Marangi 3 년 전
부모
커밋
dcdb0b064a
3개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      .github/workflows/build.yml
  2. 1 0
      .github/workflows/kernel.yml
  3. 1 0
      .github/workflows/packages.yml

+ 4 - 0
.github/workflows/build.yml

@@ -14,6 +14,8 @@ on:
         type: boolean
         type: boolean
       build_full:
       build_full:
         type: boolean
         type: boolean
+      build_kernel:
+        type: boolean
       build_all_modules:
       build_all_modules:
         type: boolean
         type: boolean
       build_all_kmods:
       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
         run: make toolchain/install -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
 
 
       - name: Build Kernel
       - name: Build Kernel
+        if: inputs.build_kernel == true
         shell: su buildbot -c "sh -e {0}"
         shell: su buildbot -c "sh -e {0}"
         working-directory: openwrt
         working-directory: openwrt
         run: make target/compile -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
         run: make target/compile -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
 
 
       - name: Build Kernel Kmods
       - name: Build Kernel Kmods
+        if: inputs.build_kernel == true
         shell: su buildbot -c "sh -e {0}"
         shell: su buildbot -c "sh -e {0}"
         working-directory: openwrt
         working-directory: openwrt
         run: make package/linux/compile -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
         run: make package/linux/compile -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh

+ 1 - 0
.github/workflows/kernel.yml

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

+ 1 - 0
.github/workflows/packages.yml

@@ -38,6 +38,7 @@ jobs:
     uses: ./.github/workflows/build.yml
     uses: ./.github/workflows/build.yml
     with:
     with:
       target: ${{ matrix.target }}
       target: ${{ matrix.target }}
+      build_kernel: true
       build_all_kmods: true
       build_all_kmods: true
       build_all_modules: true
       build_all_modules: true
       build_full: true
       build_full: true