-
-
Notifications
You must be signed in to change notification settings - Fork 399
117 lines (114 loc) · 3.7 KB
/
manual_build.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
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
# Very similar to the release build.
# Feel free to merge those into a single yaml
{
'name': 'Manual Build',
'on': ['workflow_dispatch'],
'jobs':
{
'build-valetudo':
{
'runs-on': 'ubuntu-latest',
'steps':
[
{ 'uses': 'actions/checkout@v4' },
{
'name': 'Use Node.js 20.x',
'uses': 'actions/setup-node@v4',
'with': { 'node-version': '20.x' },
},
{ 'name': 'Install', 'run': 'npm ci' },
{
'name': 'Generate OpenAPI Docs',
'run': 'npm run build_openapi_schema',
},
{
'name': 'Build Valetudo frontend',
'run': 'npm run build --workspace=frontend',
},
{
'name': 'Build Valetudo armv7',
'run': 'npm run build_armv7 --workspace=backend',
},
{
'name': 'Build Valetudo armv7 lowmem',
'run': 'npm run build_armv7_lowmem --workspace=backend',
},
{
'name': 'Build Valetudo aarch64',
'run': 'npm run build_aarch64 --workspace=backend',
},
{
'name': 'Upload armv7 build',
'uses': 'actions/upload-artifact@v4',
'with':
{
'name': 'valetudo-armv7',
'path': './build/armv7/valetudo',
},
},
{
'name': 'Upload armv7 lowmem build',
'uses': 'actions/upload-artifact@v4',
'with':
{
'name': 'valetudo-armv7-lowmem',
'path': './build/armv7/valetudo-lowmem',
},
},
{
'name': 'Upload aarch64 build',
'uses': 'actions/upload-artifact@v4',
'with':
{
'name': 'valetudo-aarch64',
'path': './build/aarch64/valetudo',
},
},
{
'name': 'UPX-compress valetudo binaries',
'run': 'npm run upx',
},
{
'name': 'Upload armv7 upx build',
'uses': 'actions/upload-artifact@v4',
'with':
{
'name': 'valetudo-armv7.upx',
'path': './build/armv7/valetudo.upx',
},
},
{
'name': 'Upload armv7 lowmem upx build',
'uses': 'actions/upload-artifact@v4',
'with':
{
'name': 'valetudo-armv7-lowmem.upx',
'path': './build/armv7/valetudo-lowmem.upx',
},
},
{
'name': 'Upload aarch64 upx build',
'uses': 'actions/upload-artifact@v4',
'with':
{
'name': 'valetudo-aarch64.upx',
'path': './build/aarch64/valetudo.upx',
},
},
{
'name': 'Build manifest',
'run': 'npm run build_release_manifest',
},
{
'name': 'Upload manifest',
'uses': 'actions/upload-artifact@v4',
'with':
{
'name': 'valetudo_release_manifest.json',
'path': './build/valetudo_release_manifest.json',
},
},
],
},
},
}