mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
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 cf361b8509
)
This commit is contained in:
parent
b0e6bce634
commit
0943f4dc99
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -6,6 +6,8 @@ on:
|
|||||||
target:
|
target:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
testing:
|
||||||
|
type: boolean
|
||||||
build_toolchain:
|
build_toolchain:
|
||||||
type: boolean
|
type: boolean
|
||||||
include_feeds:
|
include_feeds:
|
||||||
@ -16,6 +18,8 @@ on:
|
|||||||
type: boolean
|
type: boolean
|
||||||
build_all_kmods:
|
build_all_kmods:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
build_all_boards:
|
||||||
|
type: boolean
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@ -151,6 +155,13 @@ jobs:
|
|||||||
working-directory: openwrt
|
working-directory: openwrt
|
||||||
run: ./scripts/ext-tools.sh --tools /tools.tar
|
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
|
- name: Configure all kernel modules
|
||||||
if: inputs.build_all_kmods == true
|
if: inputs.build_all_kmods == true
|
||||||
shell: su buildbot -c "sh -e {0}"
|
shell: su buildbot -c "sh -e {0}"
|
||||||
@ -165,6 +176,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo CONFIG_ALL=y >> .config
|
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
|
- name: Configure external toolchain
|
||||||
if: inputs.build_toolchain == false
|
if: inputs.build_toolchain == false
|
||||||
shell: su buildbot -c "sh -e {0}"
|
shell: su buildbot -c "sh -e {0}"
|
||||||
|
9
.github/workflows/check-kernel-patches.yml
vendored
9
.github/workflows/check-kernel-patches.yml
vendored
@ -6,6 +6,8 @@ on:
|
|||||||
target:
|
target:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
testing:
|
||||||
|
type: boolean
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@ -58,6 +60,13 @@ jobs:
|
|||||||
working-directory: openwrt
|
working-directory: openwrt
|
||||||
run: ./scripts/ext-tools.sh --tools /tools.tar
|
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
|
- name: Configure system
|
||||||
shell: su buildbot -c "sh -e {0}"
|
shell: su buildbot -c "sh -e {0}"
|
||||||
working-directory: openwrt
|
working-directory: openwrt
|
||||||
|
Loading…
Reference in New Issue
Block a user