aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2022-12-03 03:04:40 +0100
committerJosef Schlehofer <pepe.schlehofer@gmail.com>2022-12-04 16:28:13 +0100
commit0943f4dc99f3e6498415f7700023c61ee3880eee (patch)
tree36f3dd8a2baa43d5d457a586977cb54a57a07b32 /.github
parentb0e6bce6347936d208eb60ce17f972407c7fe440 (diff)
downloadupstream-0943f4dc99f3e6498415f7700023c61ee3880eee.tar.gz
upstream-0943f4dc99f3e6498415f7700023c61ee3880eee.tar.bz2
upstream-0943f4dc99f3e6498415f7700023c61ee3880eee.zip
CI: Build all boards and testing kernel
This adds options to build all boards of a selected target and an additional option to build the testing kernel instead of the normal kernel. This can be used by other trigger work flows. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit cf361b85097216538dfac5ad7b22050390b0bc67)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml20
-rw-r--r--.github/workflows/check-kernel-patches.yml9
2 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b29698a774..347eb5a90c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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}"
diff --git a/.github/workflows/check-kernel-patches.yml b/.github/workflows/check-kernel-patches.yml
index 3608b5a3cc..c04cb27b37 100644
--- a/.github/workflows/check-kernel-patches.yml
+++ b/.github/workflows/check-kernel-patches.yml
@@ -6,6 +6,8 @@ on:
target:
required: true
type: string
+ testing:
+ type: boolean
permissions:
contents: read
@@ -58,6 +60,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 system
shell: su buildbot -c "sh -e {0}"
working-directory: openwrt