-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
220 lines (214 loc) · 6.94 KB
/
.gitlab-ci.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
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
# Linux x64/arm64 OpenGL
build_linux_opengl:
stage: build
# instead of calling g++ directly you can also use some build toolkit like make
# install the necessary build tools when needed
# before_script:
# - apt update && apt -y install make autoconf
script:
- git submodule update --init --recursive --force
- if [ ! -d build ]; then mkdir build; fi
- cd build
- rm -f CMakeCache.txt
- cmake ..
-DJE4_INSTALL_PKG_BY_BAOZI_WHEN_BUILD=OFF
-DJE4_COPYING_BUILTIN_FILES=OFF
-DJE4_STATIC_LINK_MODULE_AND_PKGS=OFF
-DJE4_ENABLE_DX11_GAPI=OFF
-DJE4_ENABLE_OPENGL330_GAPI=ON
-DJE4_ENABLE_OPENGLES300_GAPI=OFF
-DJE4_ENABLE_VULKAN130_GAPI=OFF
-DJE4_ENABLE_METAL_GAPI=OFF
- if [ ! -d pkg ]; then mkdir pkg; fi
- if [ ! -d builtin ]; then mkdir builtin; fi
- cmake --build . --config=RelWithDebInfo --target jedriver --parallel 4
- cd ..
cache:
when: on_success
key: jeecs-build-release-$CI_COMMIT_REF_SLUG
paths:
- "build/*"
tags:
- ubuntu20
build_linux_a64_opengl:
stage: build
# instead of calling g++ directly you can also use some build toolkit like make
# install the necessary build tools when needed
# before_script:
# - apt update && apt -y install make autoconf
script:
- git submodule update --init --recursive --force
- if [ ! -d build ]; then mkdir build; fi
- cd build
- rm -f CMakeCache.txt
- cmake ..
-DJE4_INSTALL_PKG_BY_BAOZI_WHEN_BUILD=OFF
-DJE4_COPYING_BUILTIN_FILES=OFF
-DJE4_STATIC_LINK_MODULE_AND_PKGS=OFF
-DJE4_BUILD_SHARED_CORE=ON
-DJE4_ENABLE_DX11_GAPI=OFF
-DJE4_ENABLE_OPENGL330_GAPI=ON
-DJE4_ENABLE_OPENGLES300_GAPI=OFF
-DJE4_ENABLE_VULKAN130_GAPI=OFF
-DJE4_ENABLE_METAL_GAPI=OFF
- if [ ! -d pkg ]; then mkdir pkg; fi
- if [ ! -d builtin ]; then mkdir builtin; fi
- cmake --build . --config=RelWithDebInfo --target jedriver --parallel 4
- cd ..
cache:
when: on_success
key: jeecs-build-release-$CI_COMMIT_REF_SLUG
paths:
- "build/*"
tags:
- ubuntu22_arm64
build_linux_a64_opengl_static:
stage: build
# instead of calling g++ directly you can also use some build toolkit like make
# install the necessary build tools when needed
# before_script:
# - apt update && apt -y install make autoconf
script:
- git submodule update --init --recursive --force
- if [ ! -d build ]; then mkdir build; fi
- cd build
- rm -f CMakeCache.txt
- cmake ..
-DJE4_INSTALL_PKG_BY_BAOZI_WHEN_BUILD=OFF
-DJE4_COPYING_BUILTIN_FILES=OFF
-DJE4_STATIC_LINK_MODULE_AND_PKGS=ON
-DJE4_BUILD_SHARED_CORE=OFF
-DJE4_ENABLE_DX11_GAPI=OFF
-DJE4_ENABLE_OPENGL330_GAPI=ON
-DJE4_ENABLE_OPENGLES300_GAPI=OFF
-DJE4_ENABLE_VULKAN130_GAPI=OFF
-DJE4_ENABLE_METAL_GAPI=OFF
- if [ ! -d pkg ]; then mkdir pkg; fi
- if [ ! -d builtin ]; then mkdir builtin; fi
- cmake --build . --config=RelWithDebInfo --target jedriver --parallel 4
- cd ..
cache:
when: on_success
key: jeecs-build-release-$CI_COMMIT_REF_SLUG
paths:
- "build/*"
tags:
- ubuntu22_arm64
# Linux arm64 OpenGLES
build_linux_opengles:
stage: build
# instead of calling g++ directly you can also use some build toolkit like make
# install the necessary build tools when needed
# before_script:
# - apt update && apt -y install make autoconf
script:
- git submodule update --init --recursive --force
- if [ ! -d build ]; then mkdir build; fi
- cd build
- rm -f CMakeCache.txt
- cmake ..
-DJE4_INSTALL_PKG_BY_BAOZI_WHEN_BUILD=OFF
-DJE4_COPYING_BUILTIN_FILES=OFF
-DJE4_STATIC_LINK_MODULE_AND_PKGS=OFF
-DJE4_BUILD_SHARED_CORE=ON
-DJE4_ENABLE_DX11_GAPI=OFF
-DJE4_ENABLE_OPENGL330_GAPI=OFF
-DJE4_ENABLE_OPENGLES300_GAPI=ON
-DJE4_ENABLE_VULKAN130_GAPI=OFF
-DJE4_ENABLE_METAL_GAPI=OFF
- if [ ! -d pkg ]; then mkdir pkg; fi
- if [ ! -d builtin ]; then mkdir builtin; fi
- cmake --build . --config=RelWithDebInfo --target jedriver --parallel 4
- cd ..
cache:
when: on_success
key: jeecs-build-release-$CI_COMMIT_REF_SLUG
paths:
- "build/*"
tags:
- ubuntu22_arm64
build_win64_dx11_opengl_vk:
stage: build
script:
- echo "%CI_COMMIT_SHA%" > src/jeecs_commit_msg.hpp
- git submodule update --init --recursive --force
- if not exist cmakebuild ( mkdir cmakebuild )
- cd cmakebuild
- del CMakeCache.txt
- cmake ..
-DJE4_INSTALL_PKG_BY_BAOZI_WHEN_BUILD=ON
-DJE4_COPYING_BUILTIN_FILES=ON
-DJE4_STATIC_LINK_MODULE_AND_PKGS=ON
-DJE4_BUILD_SHARED_CORE=ON
-DJE4_ENABLE_DX11_GAPI=ON
-DJE4_ENABLE_OPENGL330_GAPI=ON
-DJE4_ENABLE_OPENGLES300_GAPI=OFF
-DJE4_ENABLE_VULKAN130_GAPI=ON
-DJE4_ENABLE_METAL_GAPI=OFF
-DCMAKE_BUILD_TYPE=RelWithDebInfo
- cmake --build . --config=RelWithDebInfo --target jedriver --parallel 4
- cd ..
- cd build
- copy RelWithDebInfo\*
- ..\3rd\rcedit-x64.exe jedriver.exe --set-icon builtin\icon\icon.ico
- cd ..
artifacts:
name: jeecs-win32-release-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHA
paths:
- build/jedriver.exe
- build/OpenAL32.dll
- build/libjoyecs.dll
- build/libwoo.dll
- build/libjoyecs.lib
- build/libwoo.lib
- build/libjoyecs.pdb
- build/libwoo.pdb
- build/pkg/*
- build/builtin/*
- build/licenses/*
tags:
- winserver22
build_win64_dx11_opengles_vk:
stage: build
script:
- echo "%CI_COMMIT_SHA%" > src/jeecs_commit_msg.hpp
- git submodule update --init --recursive --force
- if not exist cmakebuild ( mkdir cmakebuild )
- cd cmakebuild
- del CMakeCache.txt
- cmake ..
-DJE4_INSTALL_PKG_BY_BAOZI_WHEN_BUILD=ON
-DJE4_COPYING_BUILTIN_FILES=ON
-DJE4_STATIC_LINK_MODULE_AND_PKGS=ON
-DJE4_BUILD_SHARED_CORE=ON
-DJE4_ENABLE_DX11_GAPI=ON
-DJE4_ENABLE_OPENGL330_GAPI=OFF
-DJE4_ENABLE_OPENGLES300_GAPI=ON
-DJE4_ENABLE_VULKAN130_GAPI=ON
-DJE4_ENABLE_METAL_GAPI=OFF
-DCMAKE_BUILD_TYPE=RelWithDebInfo
- cmake --build . --config=RelWithDebInfo --target jedriver --parallel 4
tags:
- winserver22
build_win64_dx11_opengles_vk_static:
stage: build
script:
- echo "%CI_COMMIT_SHA%" > src/jeecs_commit_msg.hpp
- git submodule update --init --recursive --force
- if not exist cmakebuild ( mkdir cmakebuild )
- cd cmakebuild
- del CMakeCache.txt
- cmake ..
-DJE4_INSTALL_PKG_BY_BAOZI_WHEN_BUILD=ON
-DJE4_COPYING_BUILTIN_FILES=ON
-DJE4_STATIC_LINK_MODULE_AND_PKGS=ON
-DJE4_BUILD_SHARED_CORE=OFF
-DJE4_ENABLE_DX11_GAPI=ON
-DJE4_ENABLE_OPENGL330_GAPI=OFF
-DJE4_ENABLE_OPENGLES300_GAPI=ON
-DJE4_ENABLE_VULKAN130_GAPI=ON
-DJE4_ENABLE_METAL_GAPI=OFF
-DCMAKE_BUILD_TYPE=RelWithDebInfo
- cmake --build . --config=RelWithDebInfo --target jedriver --parallel 4
tags:
- winserver22