-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
378 lines (348 loc) · 10 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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
stages:
- build-library
- test-GBA
- test-NDS
- deploy-docs
- deploy-dev
- deploy-release
image: insightgit/morpheus
gba-library:
stage: build-library
script:
- mkdir build
- cd build
- echo $DEVKITARM
- PLATFORM=gba BUILD_TESTS=1 cmake .. -DCMAKE_BUILD_TYPE=Debug
- cmake --build . --target morpheus
artifacts:
name: Morpheus-GBA-$CI_JOB_NAME
paths:
- build/*
- lib/libgba_morpheus.a
when: on_success
nds-library:
stage: build-library
needs: []
script:
- mkdir build
- cd build
- PLATFORM=nds BUILD_TESTS=1 cmake .. -DCMAKE_BUILD_TYPE=Debug
- cmake --build . --target morpheus
artifacts:
name: Morpheus-NDS-$CI_JOB_NAME
paths:
- build/*
- lib/libnds_morpheus.a
when: on_success
affine-test-gba:
stage: test-GBA
needs: [gba-library]
script:
- cd build
- PLATFORM=gba BUILD_TESTS=1 cmake --build . --target morpheus-gba-affine-test.gba
artifacts:
name: Morpheus-affine-test-GBA-$CI_JOB_NAME
paths:
- build/morpheus-gba-affine-test.gba
when: on_success
affine-test-nds:
stage: test-NDS
needs: [nds-library]
script:
- cd build
- PLATFORM=nds BUILD_TESTS=1 cmake --build . --target morpheus-nds-affine-test.nds
artifacts:
name: Morpheus-affine-test-NDS-$CI_JOB_NAME
paths:
- build/morpheus-nds-affine-test.nds
when: on_success
animation-test-gba:
stage: test-GBA
needs: [gba-library]
script:
- cd build
- PLATFORM=gba BUILD_TESTS=1 cmake --build . --target morpheus-gba-animation-test.gba
artifacts:
name: Morpheus-animation-test-GBA-$CI_JOB_NAME
paths:
- build/morpheus-gba-animation-test.gba
when: on_success
animation-test-nds:
stage: test-NDS
needs: [nds-library]
script:
- cd build
- PLATFORM=nds BUILD_TESTS=1 cmake --build . --target morpheus-nds-animation-test.nds
artifacts:
name: Morpheus-animation-test-NDS-$CI_JOB_NAME
paths:
- build/morpheus-nds-animation-test.nds
when: on_success
custom-font-gba:
stage: test-GBA
needs: [gba-library]
script:
- cd build
- PLATFORM=gba BUILD_TESTS=1 cmake --build . --target morpheus-gba-custom-font-test.gba
artifacts:
name: Morpheus-custom-font-test-GBA-$CI_JOB_NAME
paths:
- build/morpheus-gba-custom-font-test.gba
when: on_success
custom-font-nds:
stage: test-NDS
needs: [nds-library]
script:
- cd build
- PLATFORM=nds BUILD_TESTS=1 cmake --build . --target morpheus-nds-custom-font-test.nds
artifacts:
name: Morpheus-custom-font-test-NDS-$CI_JOB_NAME
paths:
- build/morpheus-nds-custom-font-test.nds
when: on_success
extended-palette-test-nds:
stage: test-NDS
needs: [nds-library]
script:
- cd build
- PLATFORM=nds BUILD_TESTS=1 cmake --build . --target morpheus-nds-extended-palette-test.nds
artifacts:
name: Morpheus-extended-palette-test-NDS-$CI_JOB_NAME
paths:
- build/morpheus-nds-extended-palette-test.nds
when: on_success
gfx-effects-test-gba:
stage: test-GBA
needs: [gba-library]
script:
- cd build
- PLATFORM=gba BUILD_TESTS=1 cmake --build . --target morpheus-gba-gfx-effects-test.gba
artifacts:
name: Morpheus-gfx-effects-test-GBA-$CI_JOB_NAME
paths:
- build/morpheus-gba-gfx-effects-test.gba
when: on_success
gfx-effects-test-nds:
stage: test-NDS
needs: [nds-library]
script:
- cd build
- PLATFORM=nds BUILD_TESTS=1 cmake --build . --target morpheus-nds-gfx-effects-test.nds
artifacts:
name: Morpheus-gfx-effects-test-NDS-$CI_JOB_NAME
paths:
- build/morpheus-nds-gfx-effects-test.nds
when: on_success
input-test-gba:
stage: test-GBA
needs: [gba-library]
script:
- cd build
- PLATFORM=gba BUILD_TESTS=1 cmake --build . --target morpheus-gba-input-test.gba
artifacts:
name: Morpheus-input-test-GBA-$CI_JOB_NAME
paths:
- build/morpheus-gba-input-test.gba
when: on_success
input-test-nds:
stage: test-NDS
needs: [nds-library]
script:
- cd build
- PLATFORM=nds BUILD_TESTS=1 cmake --build . --target morpheus-nds-input-test.nds
artifacts:
name: Morpheus-input-test-NDS-$CI_JOB_NAME
paths:
- build/morpheus-nds-input-test.nds
when: on_success
maxmod-test-gba:
stage: test-GBA
needs: [gba-library]
script:
- cd build
- PLATFORM=gba BUILD_TESTS=1 cmake --build . --target morpheus-gba-maxmod-test.gba
artifacts:
name: Morpheus-maxmod-test-GBA-$CI_JOB_NAME
paths:
- build/morpheus-gba-maxmod-test.gba
when: on_success
maxmod-test-nds:
stage: test-NDS
needs: [nds-library]
script:
- cd build
- PLATFORM=nds BUILD_TESTS=1 cmake --build . --target morpheus-nds-maxmod-test.nds
artifacts:
name: Morpheus-maxmod-test-NDS-$CI_JOB_NAME
paths:
- build/morpheus-nds-maxmod-test.nds
when: on_success
serial-test-gba:
stage: test-GBA
needs: [gba-library]
script:
- cd build
- PLATFORM=gba BUILD_TESTS=1 cmake --build . --target morpheus-gba-serial-test.gba
artifacts:
name: Morpheus-serial-test-GBA-$CI_JOB_NAME
paths:
- build/morpheus-gba-serial-test.gba
when: on_success
sram-test-gba:
stage: test-GBA
needs: [gba-library]
script:
- cd build
- PLATFORM=gba BUILD_TESTS=1 cmake --build . --target morpheus-gba-sram-test.gba
artifacts:
name: Morpheus-sram-test-GBA-$CI_JOB_NAME
paths:
- build/morpheus-gba-sram-test.gba
when: on_success
flash-test-gba:
stage: test-GBA
needs: [gba-library]
script:
- cd build
- PLATFORM=gba BUILD_TESTS=1 cmake --build . --target morpheus-gba-flash-test.gba
artifacts:
name: Morpheus-flash-test-GBA-$CI_JOB_NAME
paths:
- build/morpheus-gba-flash-test.gba
when: on_success
streaming-background-test-gba:
stage: test-GBA
needs: [gba-library]
script:
- cd build
- PLATFORM=gba BUILD_TESTS=1 cmake --build . --target morpheus-gba-streaming-background-test.gba
artifacts:
name: Morpheus-streaming-background-test-GBA-$CI_JOB_NAME
paths:
- build/morpheus-gba-streaming-background-test.gba
when: on_success
streaming-background-test-nds:
stage: test-NDS
needs: [nds-library]
script:
- cd build
- PLATFORM=nds BUILD_TESTS=1 cmake --build . --target morpheus-nds-streaming-background-test.nds
artifacts:
name: Morpheus-streaming-background-test-NDS-$CI_JOB_NAME
paths:
- build/morpheus-nds-streaming-background-test.nds
when: on_success
tileset-test-gba:
stage: test-GBA
needs: [gba-library]
script:
- cd build
- PLATFORM=gba BUILD_TESTS=1 cmake --build . --target morpheus-gba-tileset-test.gba
artifacts:
name: Morpheus-tileset-test-GBA-$CI_JOB_NAME
paths:
- build/morpheus-gba-tileset-test.gba
when: on_success
tileset-test-nds:
stage: test-NDS
needs: [nds-library]
script:
- cd build
- PLATFORM=nds BUILD_TESTS=1 cmake --build . --target morpheus-nds-tileset-test.nds
artifacts:
name: Morpheus-tileset-test-NDS-$CI_JOB_NAME
paths:
- build/morpheus-nds-tileset-test.nds
when: on_success
save-test-nds:
stage: test-NDS
needs: [nds-library]
script:
- cd build
- PLATFORM=nds BUILD_TESTS=1 cmake --build . --target morpheus-nds-save-test.nds
artifacts:
name: Morpheus-tileset-test-NDS-$CI_JOB_NAME
paths:
- build/morpheus-nds-save-test.nds
when: on_success
#hayai-game-gba:
# stage: test
# script:
# - mkdir games/hayai/build
# - cd games/hayai/build
# - echo $DEVKITARM
# - PLATFORM=gba cmake .. -DCMAKE_BUILD_TYPE=Debug
# - cmake --build . --target hayai.gba
# dependencies:
# - gba-library
# artifacts:
# name: Morpheus-hayai-NDS-$CI_JOB_NAME
# paths:
# - games/hayai/build/hayai.gba
# when: on_success
#hayai-game-nds:
# stage: test
# script:
# - mkdir games/hayai/build
# - cd games/hayai/build
# - echo $DEVKITARM
# - PLATFORM=nds cmake .. -DCMAKE_BUILD_TYPE=Debug
# - cmake --build . --target hayai.nds
# dependencies:
# - nds-library
# artifacts:
# name: Morpheus-input-test-NDS-$CI_JOB_NAME
# paths:
# - games/hayai/build/hayai.nds
# when: on_succes
workflow:
rules:
- if: '$CI_COMMIT_BRANCH'
pages:
stage: deploy-docs
needs: [gba-library, nds-library]
script:
- rm -rf build
- mkdir build
- cd build
- BUILD_DOCS=1 cmake ..
- cmake --build . --target Documentation
- mkdir ../public
- mv ../docs/_build/html/* ../public
artifacts:
paths:
- public
deploy_dev:
stage: deploy-dev
needs: [pages, save-test-nds, tileset-test-nds, tileset-test-gba,
streaming-background-test-nds, streaming-background-test-gba,
flash-test-gba, sram-test-gba, serial-test-gba, maxmod-test-nds,
maxmod-test-gba, input-test-nds, input-test-gba, gfx-effects-test-nds,
gfx-effects-test-gba, extended-palette-test-nds, custom-font-nds,
custom-font-gba, animation-test-nds, animation-test-gba, affine-test-nds,
affine-test-gba, gba-library, nds-library]
script:
- chmod +x buildtools/generate_cd_release/generate_cd_release.sh
- bash -x buildtools/generate_cd_release/generate_cd_release.sh dev
environment:
name: dev
url: https://insighted.itch.io/morpheus
rules:
- if: '$CI_COMMIT_BRANCH != "master"'
deploy_release:
stage: deploy-release
needs: [ pages, save-test-nds, tileset-test-nds, tileset-test-gba,
streaming-background-test-nds, streaming-background-test-gba,
flash-test-gba, sram-test-gba, serial-test-gba, maxmod-test-nds,
maxmod-test-gba, input-test-nds, input-test-gba, gfx-effects-test-nds,
gfx-effects-test-gba, extended-palette-test-nds, custom-font-nds,
custom-font-gba, animation-test-nds, animation-test-gba, affine-test-nds,
affine-test-gba, gba-library, nds-library ]
script:
- chmod +x buildtools/generate_cd_release/generate_cd_release.sh
- bash -x buildtools/generate_cd_release/generate_cd_release.sh release
environment:
name: dev
url: https://insighted.itch.io/morpheus
rules:
- if: '$CI_COMMIT_BRANCH == "master"'