Skip to content

Commit 2dca3a5

Browse files
committed
Add generated
1 parent 620e8fa commit 2dca3a5

File tree

1 file changed

+124
-0
lines changed

1 file changed

+124
-0
lines changed

.github/workflows/generate.yml

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
name: Recreate Matrix (push)
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
paths:
7+
- "config/boards/*"
8+
- ".github/workflows/generate.yml"
9+
workflow_dispatch:
10+
jobs:
11+
12+
build:
13+
name: Recreate action
14+
runs-on: ubuntu-latest
15+
steps:
16+
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
repository: armbian/os
21+
fetch-depth: 0
22+
clean: false
23+
24+
- name: Checkout Armbian Framework
25+
uses: actions/checkout@v4
26+
with:
27+
repository: armbian/build
28+
fetch-depth: 0
29+
clean: false
30+
path: build
31+
32+
- name: "Generate builds lists"
33+
run: |
34+
35+
cat <<- EOF > .github/workflows/generated.yml
36+
name: Generated
37+
on:
38+
workflow_dispatch:
39+
inputs:
40+
41+
armbian_target:
42+
type: choice
43+
description: 'Build'
44+
required: false
45+
options:
46+
- kernel
47+
- build
48+
default: build
49+
50+
armbian_kernel_branch:
51+
type: choice
52+
description: 'Kernel branch'
53+
options:
54+
- legacy
55+
- current
56+
- edge
57+
default: 'current'
58+
59+
armbian_release:
60+
type: choice
61+
description: 'Userspace'
62+
options:
63+
- jammy
64+
- bookworm
65+
- trixie
66+
default: 'jammy'
67+
68+
armbian_ui:
69+
type: choice
70+
description: 'User interface (not all works)'
71+
options:
72+
- minimal
73+
- server
74+
- xfce
75+
- gnome
76+
- cinnamon
77+
- i3-wm
78+
- kde-plasma
79+
default: 'minimal'
80+
81+
armbian_version:
82+
description: 'Version'
83+
required: false
84+
default: ''
85+
86+
armbian_board:
87+
type: choice
88+
description: 'Board'
89+
options:
90+
EOF
91+
# generate lists to include them
92+
ls -1 build/config/boards/*.conf | cut -d"/" -f4 | cut -d"." -f1 | uniq | sed 's/.*/ - &/' >> .github/workflows/generated.yml
93+
94+
cat <<- EOF >> .github/workflows/generated.yml
95+
jobs:
96+
97+
build:
98+
name: "Build Armbian"
99+
runs-on: ubuntu-latest
100+
steps:
101+
102+
- uses: armbian/build@AR-1459
103+
with:
104+
armbian_token: "${{ '\${{secrets.GITHUB_TOKEN}}' }}"
105+
armbian_target: "${{ '\${{inputs.armbian_target}}' }}"
106+
armbian_release: "${{ '\${{inputs.armbian_release}}' }}"
107+
armbian_kernel_branch: "${{ '\${{inputs.armbian_kernel_branch}}' }}"
108+
armbian_ui: "${{ '\${{inputs.armbian_ui}}' }}"
109+
armbian_board: "${{ '\${{inputs.armbian_board}}' }}"
110+
armbian_release_tittle: "Armbian SDK"
111+
armbian_release_body: "Virtual images for x86 and arm64"
112+
armbian_pgp_key: "${{ '\${{secrets.GPG_KEY1}}' }}"
113+
armbian_pgp_password: "${{ '\${{secrets.GPG_PASSPHRASE1}}' }}"
114+
EOF
115+
116+
git add .github/workflows/generated.yml
117+
git commit --allow-empty -m "Update generated GHA chunk workflow artifact-image-complete-matrix.yml" -a
118+
119+
- name: Push changes
120+
uses: ad-m/github-push-action@master
121+
with:
122+
github_token: ${{ secrets.ACCESS_TOKEN_ARMBIANWORKER }}
123+
repository: armbian/os
124+
branch: ${{ github.ref }}

0 commit comments

Comments
 (0)