-
Notifications
You must be signed in to change notification settings - Fork 5
287 lines (220 loc) · 12.1 KB
/
build-vmdb2-images.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
# This is a basic workflow to help you get started with Actions
name: Build images
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
# push:
# branches: [ ci-test, master ]
schedule:
- cron: '42 0 * * *'
workflow_dispatch:
# pull_request:
# branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
buster_armhf:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs a set of commands using the runners shell
- name: Install needed packagest
run: |
sudo apt-get update
sudo apt-get install python3-cliapp cmdtest debootstrap qemu-utils kpartx qemu-user-static binfmt-support zerofree lbzip2 ansible
- name: Install vmdb2
run: |
wget http://ftp.de.debian.org/debian/pool/main/v/vmdb2/vmdb2_0.22-1_all.deb
sudo dpkg -i vmdb2_0.22-1_all.deb
- name: Build Cubieboard2
run: sudo vmdb2 cubieboard2_buster_armhf_vmdb2-0.15.yaml --output cubieboard2_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt
- name: Zero-ing obsolete data blocks
run: loopN=$(sudo kpartx -asv cubieboard2_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv cubieboard2_buster_armhf.img
- name: Compress image
run: sudo lbzip2 cubieboard2_buster_armhf.img
- uses: actions/upload-artifact@v1
with:
name: cubieboard2_buster_armhf.img.bz2
path: cubieboard2_buster_armhf.img.bz2
- name: Build Cubietruck
run: sudo vmdb2 cubietruck_buster_armhf_vmdb2-0.15.yaml --output cubietruck_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt
- name: Zero-ing obsolete data blocks
run: loopN=$(sudo kpartx -asv cubietruck_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv cubietruck_buster_armhf.img
- name: Compress image
run: sudo lbzip2 cubietruck_buster_armhf.img
- uses: actions/upload-artifact@v1
with:
name: cubietruck_buster_armhf.img.bz2
path: cubietruck_buster_armhf.img.bz2
- name: Build Cubietruck Plus
run: sudo vmdb2 cubietruck-plus_buster_armhf_vmdb2-0.15.yaml --output cubietruck-plus_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt
- name: Zero-ing obsolete data blocks
run: loopN=$(sudo kpartx -asv cubietruck-plus_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv cubietruck-plus_buster_armhf.img
- name: Compress image
run: sudo lbzip2 cubietruck-plus_buster_armhf.img
- uses: actions/upload-artifact@v1
with:
name: cubietruck-plus_buster_armhf.img.bz2
path: cubietruck-plus_buster_armhf.img.bz2
- name: Build OrangePi R1
run: sudo vmdb2 orangepi-r1_buster_armhf_vmdb2-0.15.yaml --output orangepi-r1_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt
- name: Zero-ing obsolete data blocks
run: loopN=$(sudo kpartx -asv orangepi-r1_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv orangepi-r1_buster_armhf.img
- name: Compress image
run: sudo lbzip2 orangepi-r1_buster_armhf.img
- uses: actions/upload-artifact@v1
with:
name: orangepi-r1_buster_armhf.img.bz2
path: orangepi-r1_buster_armhf.img.bz2
- name: Build NanoPi R1
run: sudo vmdb2 nanopi-r1_buster_armhf_vmdb2-0.15.yaml --output nanopi-r1_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt
- name: Zero-ing obsolete data blocks
run: loopN=$(sudo kpartx -asv nanopi-r1_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv nanopi-r1_buster_armhf.img
- name: Compress image
run: sudo lbzip2 nanopi-r1_buster_armhf.img
- uses: actions/upload-artifact@v1
with:
name: nanopi-r1_buster_armhf.img.bz2
path: nanopi-r1_buster_armhf.img.bz2
- name: Build Odroid HC1
run: sudo vmdb2 odroid-hc1_buster_armhf_vmdb2-0.15.yaml --output odroid-hc1_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt
- name: Zero-ing obsolete data blocks
run: loopN=$(sudo kpartx -asv odroid-hc1_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv odroid-hc1_buster_armhf.img
- name: Compress image
run: sudo lbzip2 odroid-hc1_buster_armhf.img
- uses: actions/upload-artifact@v1
with:
name: odroid-hc1_buster_armhf.img.bz2
path: odroid-hc1_buster_armhf.img.bz2
- name: Build Udoo Quad
run: sudo vmdb2 udoo-quad_buster_armhf_vmdb2-0.15.yaml --output udoo-quad_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt
- name: Zero-ing obsolete data blocks
run: loopN=$(sudo kpartx -asv udoo-quad_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv udoo-quad_buster_armhf.img
- name: Compress image
run: sudo lbzip2 udoo-quad_buster_armhf.img
- uses: actions/upload-artifact@v1
with:
name: udoo-quad_buster_armhf.img.bz2
path: udoo-quad_buster_armhf.img.bz2
- name: Build Jetson TK1
run: sudo vmdb2 jetson-tk1_buster_armhf_vmdb2-0.15.yaml --output jetson-tk1_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt
- name: Zero-ing obsolete data blocks
run: loopN=$(sudo kpartx -asv jetson-tk1_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv jetson-tk1_buster_armhf.img
- name: Compress image
run: sudo lbzip2 jetson-tk1_buster_armhf.img
- uses: actions/upload-artifact@v1
with:
name: jetson-tk1_buster_armhf.img.bz2
path: jetson-tk1_buster_armhf.img.bz2
buster_arm64:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs a set of commands using the runners shell
- name: Install needed packagest
run: |
sudo apt-get update
sudo apt-get install python3-cliapp cmdtest debootstrap qemu-utils kpartx qemu-user-static binfmt-support zerofree lbzip2 ansible
- name: Install vmdb2
run: |
wget http://ftp.de.debian.org/debian/pool/main/v/vmdb2/vmdb2_0.22-1_all.deb
sudo dpkg -i vmdb2_0.22-1_all.deb
- name: Build Rock64
run: sudo vmdb2 rock64_buster_arm64_vmdb2-0.15.yaml --output rock64_buster_arm64.img --rootfs-tarball buster_arm64_rootfs.tgz --verbose --log=log.txt; cat log.txt
- name: Zero-ing obsolete data blocks
run: loopN=$(sudo kpartx -asv rock64_buster_arm64.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv rock64_buster_arm64.img
- name: Compress image
run: sudo lbzip2 rock64_buster_arm64.img
- uses: actions/upload-artifact@v1
with:
name: rock64_buster_arm64.img.bz2
path: rock64_buster_arm64.img.bz2
- name: Build Pine A64+
run: sudo vmdb2 pine-a64-plus_buster_arm64_vmdb2-0.15.yaml --output pine-a64-plus_buster_arm64.img --rootfs-tarball buster_arm64_rootfs.tgz --verbose --log=log.txt; cat log.txt
- name: Zero-ing obsolete data blocks
run: loopN=$(sudo kpartx -asv pine-a64-plus_buster_arm64.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv pine-a64-plus_buster_arm64.img
- name: Compress image
run: sudo lbzip2 pine-a64-plus_buster_arm64.img
- uses: actions/upload-artifact@v1
with:
name: pine-a64-plus_buster_arm64.img.bz2
path: pine-a64-plus_buster_arm64.img.bz2
- name: Build Pinebook
run: sudo vmdb2 pinebook_buster_arm64_vmdb2-0.15.yaml --output pinebook_buster_arm64.img --rootfs-tarball buster_arm64_rootfs.tgz --verbose --log=log.txt; cat log.txt
- name: Zero-ing obsolete data blocks
run: loopN=$(sudo kpartx -asv pinebook_buster_arm64.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv pinebook_buster_arm64.img
- name: Compress image
run: sudo lbzip2 pinebook_buster_arm64.img
- uses: actions/upload-artifact@v1
with:
name: pinebook_buster_arm64.img.bz2
path: pinebook_buster_arm64.img.bz2
- name: Build NanoPi NEO 2
run: sudo vmdb2 nanopi-neo2_buster_arm64_vmdb2-0.15.yaml --output nanopi-neo2_buster_arm64.img --rootfs-tarball buster_arm64_rootfs.tgz --verbose --log=log.txt; cat log.txt
- name: Zero-ing obsolete data blocks
run: loopN=$(sudo kpartx -asv nanopi-neo2_buster_arm64.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv nanopi-neo2_buster_arm64.img
- name: Compress image
run: sudo lbzip2 nanopi-neo2_buster_arm64.img
- uses: actions/upload-artifact@v1
with:
name: nanopi-neo2_buster_arm64.img.bz2
path: nanopi-neo2_buster_arm64.img.bz2
- name: Build Odroid N2
run: sudo vmdb2 odroid-n2_buster_arm64_vmdb2-0.15.yaml --output odroid-n2_buster_arm64.img --rootfs-tarball buster_arm64_rootfs.tgz --verbose --log=log.txt; cat log.txt
- name: Zero-ing obsolete data blocks
run: loopN=$(sudo kpartx -asv odroid-n2_buster_arm64.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv odroid-n2_buster_arm64.img
- name: Compress image
run: sudo lbzip2 odroid-n2_buster_arm64.img
- uses: actions/upload-artifact@v1
with:
name: odroid-n2_buster_arm64.img.bz2
path: odroid-n2_buster_arm64.img.bz2
- name: Build Jetson TX1
run: sudo vmdb2 jetson-tx1_buster_arm64_vmdb2-0.15.yaml --output jetson-tx1_buster_arm64.img --rootfs-tarball buster_arm64_rootfs.tgz --verbose --log=log.txt; cat log.txt
- name: Zero-ing obsolete data blocks
run: loopN=$(sudo kpartx -asv jetson-tx1_buster_arm64.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv jetson-tx1_buster_arm64.img
- name: Compress image
run: sudo lbzip2 jetson-tx1_buster_arm64.img
- uses: actions/upload-artifact@v1
with:
name: jetson-tx1_buster_arm64.img.bz2
path: jetson-tx1_buster_arm64.img.bz2
# bullseye_armhf:
# # The type of runner that the job will run on
# runs-on: ubuntu-latest
#
# # Steps represent a sequence of tasks that will be executed as part of the job
# steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# - uses: actions/checkout@v2
#
# # Runs a set of commands using the runners shell
# - name: Install needed packagest
# run: |
# sudo apt-get update
# sudo apt-get install python3-cliapp cmdtest debootstrap qemu-utils kpartx qemu-user-static binfmt-support zerofree lbzip2
#
# - name: Install vmdb2
# run: |
# wget http://ftp.de.debian.org/debian/pool/main/v/vmdb2/vmdb2_0.22-1_all.deb
# sudo dpkg -i vmdb2_0.15-1_all.deb
#
# - name: Build Cubietruck Plus
# run: sudo vmdb2 cubietruck-plus_bullseye_armhf_vmdb2-0.15.yaml --output cubietruck-plus_bullseye_armhf.img --rootfs-tarball bullseye_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt
#
# - name: Zero-ing obsolete data blocks
# run: loopN=$(sudo kpartx -asv cubietruck-plus_bullseye_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv cubietruck-plus_bullseye_armhf.img
#
# - name: Compress image
# run: sudo lbzip2 cubietruck-plus_bullseye_armhf.img
#
# - uses: actions/upload-artifact@v1
# with:
# name: cubietruck-plus_bullseye_armhf.img.bz2
# path: cubietruck-plus_bullseye_armhf.img.bz2