-
Notifications
You must be signed in to change notification settings - Fork 16
159 lines (157 loc) · 4.51 KB
/
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
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
name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
check-formatting:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: DoozyX/clang-format-lint-action@v0.15
with:
source: ./Scripts
extensions: 'fos,h,cpp'
clangFormatVersion: 15
unit-tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: Engine/BuildTools/validate.sh unit-tests
compile-scripts:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: Engine/BuildTools/prepare-workspace.sh packages linux toolset
- run: Engine/BuildTools/toolset.sh CompileAngelScript
bake-resources:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: Engine/BuildTools/prepare-workspace.sh packages linux toolset
- run: Engine/BuildTools/toolset.sh BakeResources
- run: cd Workspace/output && tar -cf Bakering.tar Bakering
- uses: actions/upload-artifact@v3
with:
name: Bakering
path: Workspace/output/Bakering.tar
retention-days: 1
windows-build:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
app:
- win32 client Release
- win64 client Release
- win64 server Release
- win64 editor Release
- win64 mapper Release
- win64 client Profiling
- win64 server Profiling
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: Engine/BuildTools/build.bat ${{matrix.app}}
- uses: actions/upload-artifact@v3
with:
name: Binaries
path: |
Workspace/output/*Binaries/Client*
Workspace/output/*Binaries/Server*
Workspace/output/*Binaries/Editor*
Workspace/output/*Binaries/Mapper*
retention-days: 1
linux-build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
app:
- linux client Release
- android client Release
- android-arm64 client Release
- web client Release
- linux server Release
- linux editor Release
- linux mapper Release
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: Engine/BuildTools/prepare-workspace.sh packages ${{matrix.app}}
- run: Engine/BuildTools/build.sh ${{matrix.app}}
- uses: actions/upload-artifact@v3
with:
name: Binaries
path: |
Workspace/output/*Binaries/Client*
Workspace/output/*Binaries/Server*
Workspace/output/*Binaries/Editor*
Workspace/output/*Binaries/Mapper*
retention-days: 1
macos-build:
runs-on: macos-11
strategy:
fail-fast: false
matrix:
app:
- mac client Release
- ios client Release
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: Engine/BuildTools/build.sh ${{matrix.app}}
- uses: actions/upload-artifact@v3
with:
name: Binaries
path: |
Workspace/output/*Binaries/Client*
Workspace/output/*Binaries/Server*
Workspace/output/*Binaries/Editor*
Workspace/output/*Binaries/Mapper*
retention-days: 1
package:
runs-on: ubuntu-22.04
needs: [bake-resources, windows-build, linux-build, macos-build]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/download-artifact@v4.1.7
with:
name: Binaries
path: Workspace/output
- uses: actions/download-artifact@v4.1.7
with:
name: Bakering
path: Workspace/output
- run: cd Workspace/output && tar -xf Bakering.tar
- run: cd Workspace/output && tree -d
- run: Engine/BuildTools/prepare-workspace.sh packages linux toolset
- run: Engine/BuildTools/toolset.sh MakePackage-Dev
- uses: actions/upload-artifact@v3
with:
name: TLA-Dev
path: Workspace/output/TLA-Dev
retention-days: 1
- run: (cd Workspace/output/TLA-Dev/TLA-Server-LocalTest && zip -0 -r - .) > TLA-Server.zip
- run: (cd Workspace/output/TLA-Dev/TLA-Client-LocalTest && zip -0 -r - .) > TLA-Client.zip
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
files: |
TLA-Server.zip
TLA-Client.zip