mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
b79ed14dd1
Instead of referring to a redundant job and ENV variables, rework build
workflow to accept and require split target and subtarget and use them
directly from inputs.
Rework each user and pass a JSON of tuple to matrix include with each
target/subtarget combination to test. Special notice this doesn't use
the github actions matrix combination feature but reference each
specific tuple of target and subtarget to test.
Just a cleanup no behaviour change intended.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit eecc6e4811
)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
53 lines
1.1 KiB
YAML
53 lines
1.1 KiB
YAML
name: Build all core packages
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/build.yml'
|
|
- '.github/workflows/packages.yml'
|
|
- 'config/**'
|
|
- 'include/**'
|
|
- 'package/**'
|
|
- 'target/linux/generic/**'
|
|
- 'toolchain/**'
|
|
push:
|
|
paths:
|
|
- '.github/workflows/build.yml'
|
|
- '.github/workflows/packages.yml'
|
|
- 'config/**'
|
|
- 'include/**'
|
|
- 'package/**'
|
|
- 'target/linux/generic/**'
|
|
- 'toolchain/**'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Packages with external toolchain
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
strategy:
|
|
fail-fast: False
|
|
matrix:
|
|
include:
|
|
- target: malta
|
|
subtarget: be
|
|
- target: x86
|
|
subtarget: 64
|
|
uses: ./.github/workflows/build.yml
|
|
with:
|
|
target: ${{ matrix.target }}
|
|
subtarget: ${{ matrix.subtarget }}
|
|
build_kernel: true
|
|
build_all_kmods: true
|
|
build_all_modules: true
|
|
build_full: true
|
|
|