CI: Build all boards and testing kernel
[openwrt/staging/pepe2k.git] / .github / workflows / build.yml
index b29698a77477a2db6d3c66f7dbed635ea704aca0..347eb5a90cde72e4cceb7a3cc5edbfe20093b899 100644 (file)
@@ -6,6 +6,8 @@ on:
       target:
         required: true
         type: string
+      testing:
+        type: boolean
       build_toolchain:
         type: boolean
       include_feeds:
@@ -16,6 +18,8 @@ on:
         type: boolean
       build_all_kmods:
         type: boolean
+      build_all_boards:
+        type: boolean
 
 permissions:
   contents: read
@@ -151,6 +155,13 @@ jobs:
         working-directory: openwrt
         run: ./scripts/ext-tools.sh --tools /tools.tar
 
+      - name: Configure testing kernel
+        if: inputs.testing == true
+        shell: su buildbot -c "sh -e {0}"
+        working-directory: openwrt
+        run: |
+          echo CONFIG_TESTING_KERNEL=y >> .config
+
       - name: Configure all kernel modules
         if: inputs.build_all_kmods == true
         shell: su buildbot -c "sh -e {0}"
@@ -165,6 +176,15 @@ jobs:
         run: |
           echo CONFIG_ALL=y >> .config
 
+      - name: Configure all boards
+        if: inputs.build_all_boards == true
+        shell: su buildbot -c "sh -e {0}"
+        working-directory: openwrt
+        run: |
+          echo CONFIG_TARGET_MULTI_PROFILE=y >> .config
+          echo CONFIG_TARGET_PER_DEVICE_ROOTFS=y >> .config
+          echo CONFIG_TARGET_ALL_PROFILES=y >> .config
+
       - name: Configure external toolchain
         if: inputs.build_toolchain == false
         shell: su buildbot -c "sh -e {0}"