.gitlab-ci.yml 6.29 KB
Newer Older
Libretro-Admin's avatar
Libretro-Admin committed
1
2
3
4
5
6
7
# DESCRIPTION: GitLab CI/CD for libRetro (NOT FOR GitLab-proper)

##############################################################################
################################# BOILERPLATE ################################
##############################################################################

# Core definitions
Libretro-Admin's avatar
Libretro-Admin committed
8
9
10
.core-defs:
  variables:
    JNI_PATH: .
Libretro-Admin's avatar
Libretro-Admin committed
11
    CORENAME: handy
Libretro-Admin's avatar
Libretro-Admin committed
12

Libretro-Admin's avatar
Libretro-Admin committed
13
# Inclusion templates, required for the build to work
Libretro-Admin's avatar
Libretro-Admin committed
14
include:
Libretro-Admin's avatar
Libretro-Admin committed
15
16
  ################################## DESKTOPS ################################
  # Windows 64-bit
Libretro-Admin's avatar
Libretro-Admin committed
17
  - project: 'libretro-infrastructure/ci-templates'
Libretro-Admin's avatar
Libretro-Admin committed
18
    file: '/windows-x64-mingw.yml'
Libretro-Admin's avatar
Libretro-Admin committed
19
20
21
22
23

  # Windows 32-bit
  - project: 'libretro-infrastructure/ci-templates'
    file: '/windows-i686-mingw.yml'

Libretro-Admin's avatar
Libretro-Admin committed
24
25
26
27
28
29
30
31
32
33
34
35
  # Windows msvc10 64-bit
  - project: 'libretro-infrastructure/ci-templates'
    file: '/windows-x64-msvc10-msys2.yml'

  # Windows msvc10 32-bit
  - project: 'libretro-infrastructure/ci-templates'
    file: '/windows-i686-msvc10-msys2.yml'

  # Windows msvc05 32-bit
  - project: 'libretro-infrastructure/ci-templates'
    file: '/windows-i686-msvc05-msys2.yml'

Libretro-Admin's avatar
Libretro-Admin committed
36
  # Linux 64-bit
Libretro-Admin's avatar
Libretro-Admin committed
37
  - project: 'libretro-infrastructure/ci-templates'
Libretro-Admin's avatar
Libretro-Admin committed
38
    file: '/linux-x64.yml'
Libretro-Admin's avatar
Libretro-Admin committed
39
40
41
42
43

  # Linux 32-bit
  - project: 'libretro-infrastructure/ci-templates'
    file: '/linux-i686.yml'

Libretro-Admin's avatar
Libretro-Admin committed
44
45
46
47
48
49
50
51
  # MacOS 64-bit
  - project: 'libretro-infrastructure/ci-templates'
    file: '/osx-x64.yml'
    
  ################################## CELLULAR ################################
  # Android
  - project: 'libretro-infrastructure/ci-templates'
    file: '/android-jni.yml'
Libretro-Admin's avatar
Libretro-Admin committed
52
53
54
55
56

  # iOS 9
  - project: 'libretro-infrastructure/ci-templates'
    file: '/ios9.yml'

Libretro-Admin's avatar
Libretro-Admin committed
57
58
  ################################## CONSOLES ################################
  # PlayStation Portable
Libretro-Admin's avatar
Libretro-Admin committed
59
60
  - project: 'libretro-infrastructure/ci-templates'
    file: '/psp-static.yml'
Libretro-Admin's avatar
Libretro-Admin committed
61
62
63
64
65
66
    
  # PlayStation Vita
  - project: 'libretro-infrastructure/ci-templates'
    file: '/vita-static.yml'
    
  # PlayStation2
67
68
  - project: 'libretro-infrastructure/ci-templates'
    file: '/ps2-static.yml'
Libretro-Admin's avatar
Libretro-Admin committed
69
70
    
  # Nintendo 3DS
Libretro-Admin's avatar
Libretro-Admin committed
71
  - project: 'libretro-infrastructure/ci-templates'
Libretro-Admin's avatar
Libretro-Admin committed
72
73
74
    file: '/ctr-static.yml'

  # Nintendo Wii
Libretro-Admin's avatar
Libretro-Admin committed
75
  - project: 'libretro-infrastructure/ci-templates'
Libretro-Admin's avatar
Libretro-Admin committed
76
    file: '/wii-static.yml'
Libretro-Admin's avatar
Libretro-Admin committed
77
78
79
80
81

  # Nintendo WiiU
  - project: 'libretro-infrastructure/ci-templates'
    file: '/wiiu-static.yml'

Libretro-Admin's avatar
Libretro-Admin committed
82
  # Nintendo Switch
83
  - project: 'libretro-infrastructure/ci-templates'
Libretro-Admin's avatar
Libretro-Admin committed
84
85
86
    file: '/libnx-static.yml'
  
  # OpenDingux
Libretro-Admin's avatar
Libretro-Admin committed
87
  - project: 'libretro-infrastructure/ci-templates'
Libretro-Admin's avatar
Libretro-Admin committed
88
    file: '/dingux-mips32.yml'
Libretro-Admin's avatar
Libretro-Admin committed
89

Libretro-Admin's avatar
Libretro-Admin committed
90
91
92
93
94
  #################################### MISC ##################################
  # Emscripten
  - project: 'libretro-infrastructure/ci-templates'
    file: '/emscripten-static.yml'

Libretro-Admin's avatar
Libretro-Admin committed
95
# Stages for building
Libretro-Admin's avatar
Libretro-Admin committed
96
97
98
99
100
stages:
  - build-prepare
  - build-shared
  - build-static

Libretro-Admin's avatar
Libretro-Admin committed
101
102
103
104
105
106
##############################################################################
#################################### STAGES ##################################
##############################################################################
#
################################### DESKTOPS #################################
# Windows 64-bit
Libretro-Admin's avatar
Libretro-Admin committed
107
108
109
libretro-build-windows-x64:
  extends:
    - .libretro-windows-x64-mingw-make-default
Libretro-Admin's avatar
Libretro-Admin committed
110
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
111
112
113
114
115
116
117

# Windows 32-bit
libretro-build-windows-i686:
  extends:
    - .libretro-windows-i686-mingw-make-default
    - .core-defs

Libretro-Admin's avatar
Libretro-Admin committed
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Windows msvc10 64-bit
libretro-build-windows-msvc10-x64:
  extends:
    - .libretro-windows-x64-msvc10-msys2-make-default
    - .core-defs

# Windows msvc10 32-bit
libretro-build-windows-msvc10-i686:
  extends:
    - .libretro-windows-i686-msvc10-msys2-make-default
    - .core-defs

# Windows msvc05 32-bit
libretro-build-windows-msvc05-i686:
  extends:
    - .libretro-windows-i686-msvc05-msys2-make-default
    - .core-defs

Libretro-Admin's avatar
Libretro-Admin committed
136
137
138
139
# Linux 64-bit
libretro-build-linux-x64:
  extends:
    - .libretro-linux-x64-make-default
Libretro-Admin's avatar
Libretro-Admin committed
140
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
141
142
143
144
145
146
147

# Linux 32-bit
libretro-build-linux-i686:
  extends:
    - .libretro-linux-i686-make-default
    - .core-defs

Libretro-Admin's avatar
Libretro-Admin committed
148
149
# MacOS 64-bit
libretro-build-osx-x64:
150
  extends:
Libretro-Admin's avatar
Libretro-Admin committed
151
    - .libretro-osx-x64-make-default
152
153
    - .core-defs

Libretro-Admin's avatar
Libretro-Admin committed
154
155
################################### CELLULAR #################################
# Android ARMv7a
Libretro-Admin's avatar
Libretro-Admin committed
156
157
158
android-armeabi-v7a:
  extends:
    - .libretro-android-jni-armeabi-v7a
Libretro-Admin's avatar
Libretro-Admin committed
159
160
    - .core-defs
    
Libretro-Admin's avatar
Libretro-Admin committed
161
# Android ARMv8a
Libretro-Admin's avatar
Libretro-Admin committed
162
163
164
android-arm64-v8a:
  extends:
    - .libretro-android-jni-arm64-v8a
Libretro-Admin's avatar
Libretro-Admin committed
165
166
    - .core-defs
    
Libretro-Admin's avatar
Libretro-Admin committed
167
# Android 64-bit x86
Libretro-Admin's avatar
Libretro-Admin committed
168
169
170
android-x86_64:
  extends:
    - .libretro-android-jni-x86_64
Libretro-Admin's avatar
Libretro-Admin committed
171
172
    - .core-defs
    
Libretro-Admin's avatar
Libretro-Admin committed
173
# Android 32-bit x86
Libretro-Admin's avatar
Libretro-Admin committed
174
175
176
android-x86:
  extends:
    - .libretro-android-jni-x86
Libretro-Admin's avatar
Libretro-Admin committed
177
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
178
179

# iOS 9
Libretro-Admin's avatar
Libretro-Admin committed
180
libretro-build-ios9:
Libretro-Admin's avatar
Libretro-Admin committed
181
182
183
184
  extends:
    - .libretro-ios9-make-default
    - .core-defs

Libretro-Admin's avatar
Libretro-Admin committed
185
186
187
################################### CONSOLES ################################# 
# PlayStation Portable
libretro-build-psp:
Libretro-Admin's avatar
Libretro-Admin committed
188
  extends:
Libretro-Admin's avatar
Libretro-Admin committed
189
    - .libretro-psp-static-retroarch-master
Libretro-Admin's avatar
Libretro-Admin committed
190
191
    - .core-defs
    
Libretro-Admin's avatar
Libretro-Admin committed
192
# PlayStation Vita
Libretro-Admin's avatar
Libretro-Admin committed
193
194
195
libretro-build-vita:
  extends:
    - .libretro-vita-static-retroarch-master
Libretro-Admin's avatar
Libretro-Admin committed
196
197
    - .core-defs
    
Libretro-Admin's avatar
Libretro-Admin committed
198
199
# PlayStation2
libretro-build-ps2:
Libretro-Admin's avatar
Libretro-Admin committed
200
  extends:
Libretro-Admin's avatar
Libretro-Admin committed
201
    - .libretro-ps2-static-retroarch-master
Libretro-Admin's avatar
Libretro-Admin committed
202
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
203
204
205
206
207
208
    
# Nintendo 3DS
libretro-build-ctr:
  extends:
    - .libretro-ctr-static-retroarch-master
    - .core-defs
209

Libretro-Admin's avatar
Libretro-Admin committed
210
211
# Nintendo Wii
libretro-build-wii:
212
  extends:
Libretro-Admin's avatar
Libretro-Admin committed
213
    - .libretro-wii-static-retroarch-master
214
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
215

Libretro-Admin's avatar
Libretro-Admin committed
216
217
218
219
220
221
# Nintendo WiiU
libretro-build-wiiu:
  extends:
    - .libretro-wiiu-static-retroarch-master
    - .core-defs

Libretro-Admin's avatar
Libretro-Admin committed
222
223
224
225
# Nintendo Switch
libretro-build-libnx-aarch64:
  extends:
    - .libretro-libnx-static-retroarch-master
Libretro-Admin's avatar
Libretro-Admin committed
226
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
227
228
229
230
231
    
# OpenDingux
libretro-build-dingux-mips32:
  extends:
    - .libretro-dingux-mips32-make-default
Libretro-Admin's avatar
Libretro-Admin committed
232
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
233

Libretro-Admin's avatar
Libretro-Admin committed
234
235
236
237
238
239
# OpenDingux Beta
libretro-build-dingux-odbeta-mips32:
  extends:
    - .libretro-dingux-odbeta-mips32-make-default
    - .core-defs

jdgleaver's avatar
jdgleaver committed
240
241
242
243
244
245
# RS-90 OpenDingux Beta
libretro-build-rs90-odbeta-mips32:
  extends:
    - .libretro-rs90-odbeta-mips32-make-default
    - .core-defs

Libretro-Admin's avatar
Libretro-Admin committed
246
247
248
249
250
251
#################################### MISC ##################################
# Emscripten
libretro-build-emscripten:
  extends:
    - .libretro-emscripten-static-retroarch-master
    - .core-defs