CI: rework build workflow to have split target and subtarget directly
[openwrt/openwrt.git] / .github / workflows / packages.yml
1 name: Build all core packages
2
3 on:
4 pull_request:
5 paths:
6 - '.github/workflows/build.yml'
7 - '.github/workflows/packages.yml'
8 - 'config/**'
9 - 'include/**'
10 - 'package/**'
11 - 'target/linux/generic/**'
12 - 'toolchain/**'
13 push:
14 paths:
15 - '.github/workflows/build.yml'
16 - '.github/workflows/packages.yml'
17 - 'config/**'
18 - 'include/**'
19 - 'package/**'
20 - 'target/linux/generic/**'
21 - 'toolchain/**'
22
23 permissions:
24 contents: read
25
26 concurrency:
27 group: ${{ github.workflow }}-${{ github.ref }}
28 cancel-in-progress: ${{ github.event_name == 'pull_request' }}
29
30 jobs:
31 build:
32 name: Build Packages with external toolchain
33 permissions:
34 contents: read
35 packages: read
36 strategy:
37 fail-fast: False
38 matrix:
39 include:
40 - target: malta
41 subtarget: be
42 - target: x86
43 subtarget: 64
44 uses: ./.github/workflows/build.yml
45 with:
46 target: ${{ matrix.target }}
47 subtarget: ${{ matrix.subtarget }}
48 build_kernel: true
49 build_all_kmods: true
50 build_all_modules: true
51 build_full: true
52