-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (73 loc) · 2.49 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
# Very similar to the release build.
# Main usage: generate build without releasing it (preview of a release) & upload it as an GIT artifact
name: Manual Build
on: workflow_dispatch
jobs:
build-NoCloud:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 20.x
steps:
- uses: actions/checkout@v4
- name: 'Use Node.js ${{ matrix.node-version }}'
uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node-version }}'
- name: Install NPM
run: npm ci
- name: Generate OpenAPI Docs
run: npm run build_openapi_schema
- name: Upload OpenAPI Docs
uses: actions/upload-artifact@v4
with:
name: NoCloud.openapi.schema.json
path: ./build/NoCloud.openapi.schema.json
- name: Build NoCloud frontend
run: npm run build --workspace=frontend
- name: Build NoCloud armv7
run: npm run build_armv7 --workspace=backend
- name: Upload armv7 build
uses: actions/upload-artifact@v4
with:
name: NoCloud-armv7
path: ./build/armv7/NoCloud
- name: Build NoCloud armv7 lowmem
run: npm run build_armv7_lowmem --workspace=backend
- name: Upload armv7 lowmem build
uses: actions/upload-artifact@v4
with:
name: NoCloud-armv7-lowmem
path: ./build/armv7/NoCloud-lowmem
- name: Build NoCloud aarch64
run: npm run build_aarch64 --workspace=backend
- name: Upload aarch64 build
uses: actions/upload-artifact@v4
with:
name: NoCloud-aarch64
path: ./build/aarch64/NoCloud
- name: UPX-compress NoCloud binaries
run: npm run upx
- name: Upload armv7 upx build
uses: actions/upload-artifact@v4
with:
name: Upload NoCloud-armv7.upx
path: ./build/armv7/NoCloud.upx
- name: Upload armv7 lowmem upx build
uses: actions/upload-artifact@v4
with:
name: Upload NoCloud-armv7-lowmem.upx
path: ./build/armv7/NoCloud-lowmem.upx
- name: Upload aarch64 upx build
uses: actions/upload-artifact@v4
with:
name: Upload NoCloud-aarch64.upx
path: ./build/aarch64/NoCloud.upx
- name: Generate Manifest
run: npm run build_release_manifest
- name: Upload Manifest
uses: actions/upload-artifact@v4
with:
name: NoCloud_release_manifest.json
path: ./build/NoCloud_release_manifest.json