-
Notifications
You must be signed in to change notification settings - Fork 46
80 lines (77 loc) · 2.17 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Build images
on:
schedule:
- cron: '0 0 * * SUN'
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- '**.md'
- .gitignore
- 'docs/**'
- 'theme/**'
- book.toml
- .github/workflows/docs.yaml
pull_request:
paths-ignore:
- '**.md'
- .gitignore
- 'docs/**'
- 'theme/**'
- book.toml
- .github/workflows/docs.yaml
jobs:
query:
runs-on: ubuntu-latest
outputs:
boards: ${{ steps.query.outputs.boards }}
suites: ${{ steps.query.outputs.suites }}
flavors: ${{ steps.query.outputs.flavors }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Query available board configs
id: query
run: |
echo "boards=$(./rbuild json boards)" >> $GITHUB_OUTPUT
echo "suites=$(./rbuild json suites)" >> $GITHUB_OUTPUT
echo "flavors=$(./rbuild json flavors)" >> $GITHUB_OUTPUT
build-rootfs:
needs: query
runs-on: ubuntu-latest
strategy:
max-parallel: 10
matrix:
boards: [ rootfs ]
suites: ${{ fromJSON(needs.query.outputs.suites )}}
flavors: ${{ fromJSON(needs.query.outputs.flavors )}}
steps:
- name: Build ${{ matrix.boards }}_${{ matrix.suites }}_${{ matrix.flavors }}
uses: radxa-repo/rbuild@main
with:
board: ${{ matrix.boards }}
suite: ${{ matrix.suites }}
flavor: ${{ matrix.flavors }}
test-repo: true
artifacts: true
build-images:
needs: [ query, build-rootfs ]
runs-on: ubuntu-latest
strategy:
matrix:
boards: ${{ fromJSON(needs.query.outputs.boards) }}
suites: ${{ fromJSON(needs.query.outputs.suites )}}
flavors: ${{ fromJSON(needs.query.outputs.flavors )}}
exclude:
- boards: rootfs
steps:
- name: Build ${{ matrix.boards }}_${{ matrix.suites }}_${{ matrix.flavors }}
uses: radxa-repo/rbuild@main
with:
board: ${{ matrix.boards }}
suite: ${{ matrix.suites }}
flavor: ${{ matrix.flavors }}
test-repo: true
artifacts: true
prebuilt-rootfs: true