-
Notifications
You must be signed in to change notification settings - Fork 16
162 lines (160 loc) · 4.61 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
160
161
162
name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
check-formatting:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: DoozyX/clang-format-lint-action@v0.18
with:
source: ./Scripts
extensions: 'fos,h,cpp'
clangFormatVersion: 18
unit-tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: Engine/BuildTools/validate.sh unit-tests
compile-scripts:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
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@v4
with:
submodules: recursive
- run: Engine/BuildTools/prepare-workspace.sh packages linux toolset
- run: Engine/BuildTools/toolset.sh BakeResources
- run: cd Workspace/output && tar -cf Baking.tar Baking
- uses: actions/upload-artifact@v4
with:
name: Baking
path: Workspace/output/Baking.tar
if-no-files-found: error
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_Total
- win64 server Profiling_Total
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: Engine/BuildTools/build.bat ${{matrix.app}}
- uses: actions/upload-artifact@v4
with:
name: Binaries-${{matrix.app}}
path: |
Workspace/output/*Binaries/Client*
Workspace/output/*Binaries/Server*
Workspace/output/*Binaries/Editor*
Workspace/output/*Binaries/Mapper*
if-no-files-found: error
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@v4
with:
submodules: recursive
- run: Engine/BuildTools/prepare-workspace.sh packages ${{matrix.app}}
- run: Engine/BuildTools/build.sh ${{matrix.app}}
- uses: actions/upload-artifact@v4
with:
name: Binaries-${{matrix.app}}
path: |
Workspace/output/*Binaries/Client*
Workspace/output/*Binaries/Server*
Workspace/output/*Binaries/Editor*
Workspace/output/*Binaries/Mapper*
if-no-files-found: error
retention-days: 1
macos-build:
runs-on: macos-13
strategy:
fail-fast: false
matrix:
app:
- mac client Release
- ios client Release
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: Engine/BuildTools/build.sh ${{matrix.app}}
- uses: actions/upload-artifact@v4
with:
name: Binaries-${{matrix.app}}
path: |
Workspace/output/*Binaries/Client*
if-no-files-found: error
retention-days: 1
package:
runs-on: ubuntu-22.04
needs: [bake-resources, windows-build, linux-build, macos-build]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/download-artifact@v4
with:
pattern: Binaries-*
merge-multiple: true
path: Workspace/output
- uses: actions/download-artifact@v4
with:
name: Baking
path: Workspace/output
- run: cd Workspace/output && tar -xf Baking.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@v4
with:
name: TLA-Dev
path: Workspace/output/TLA-Dev
if-no-files-found: error
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@v2
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
files: |
TLA-Server.zip
TLA-Client.zip