forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (72 loc) · 1.96 KB
/
generate.yml
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
81
name: Recreate Matrix (push)
on:
push:
branches:
- 'main'
paths:
- "config/boards/*"
- ".github/workflows/generate.yml"
workflow_dispatch:
jobs:
build:
name: Recreate action
runs-on: ubuntu-latest
steps:
- name: Checkout Armbian Framework
uses: actions/checkout@v4
with:
repository: armbian/build
fetch-depth: 0
clean: false
path: build
- name: "Generate builds lists"
run: |
cat <<- EOF > action.yml
name: Generated
on:
workflow_dispatch:
inputs:
armbian_target:
type: choice
description: 'Build'
required: false
options:
- kernel
- build
default: build
armbian_branch:
type: choice
description: 'Framework build branch'
options:
- legacy
- current
- edge
default: 'current'
armbian_release:
type: choice
description: 'Userspace'
options:
- jammy
- bookworm
- trixie
default: 'jammy'
armbian_ui:
type: choice
description: 'User interface (not all combinations work)'
options:
- minimal
- server
- xfce
- gnome
- cinnamon
- i3-wm
- kde-plasma
default: 'minimal'
armbian_board:
type: choice
description: 'Board'
options:
EOF
# generate lists to include them
ls -1 build/config/boards/*.conf | cut -d"/" -f4 | cut -d"." -f1 | uniq | sed 's/.*/ - &/' >> action.yml
cat action.yml