.gitlab-ci.yml 3.46 KB
Newer Older
Libretro-Admin's avatar
Update    
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
11
12
.core-defs:
  variables:
    JNI_PATH: .
    CORENAME: mednafen_pce

Libretro-Admin's avatar
Update    
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
Update    
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
Update    
Libretro-Admin committed
18
    file: '/windows-x64-mingw.yml'
Libretro-Admin's avatar
Libretro-Admin committed
19
20
21
22
    
  # Windows 32-bit
  - project: 'libretro-infrastructure/ci-templates'
    file: '/windows-i686-mingw.yml'
Libretro-Admin's avatar
Update    
Libretro-Admin committed
23
24

  # Linux 64-bit
Libretro-Admin's avatar
Libretro-Admin committed
25
26
  - project: 'libretro-infrastructure/ci-templates'
    file: '/linux-x64.yml'
Libretro-Admin's avatar
Update    
Libretro-Admin committed
27
28
29

  ################################## CELLULAR ################################
  # Android
Libretro-Admin's avatar
Libretro-Admin committed
30
31
32
  - project: 'libretro-infrastructure/ci-templates'
    file: '/android-jni.yml'

Libretro-Admin's avatar
Update    
Libretro-Admin committed
33
34
35
36
37
38
39
40
  ################################## CONSOLES ################################
  # PlayStation Portable
  - project: 'libretro-infrastructure/ci-templates'
    file: '/psp-static.yml'

  # PlayStation Vita
  - project: 'libretro-infrastructure/ci-templates'
    file: '/vita-static.yml'
Libretro-Admin's avatar
Libretro-Admin committed
41
42
43
44
    
  # Nintendo WiiU
  - project: 'libretro-infrastructure/ci-templates'
    file: '/wiiu-static.yml'
Libretro-Admin's avatar
Update    
Libretro-Admin committed
45
46
47
48
49
50

  # Nintendo Switch
  - project: 'libretro-infrastructure/ci-templates'
    file: '/libnx-static.yml'

# Stages for building
Libretro-Admin's avatar
Libretro-Admin committed
51
52
53
54
55
stages:
  - build-prepare
  - build-shared
  - build-static

Libretro-Admin's avatar
Update    
Libretro-Admin committed
56
57
58
59
60
61
62
##############################################################################
#################################### STAGES ##################################
##############################################################################
#
################################### DESKTOPS #################################
# Windows 64-bit
libretro-build-windows-x64:
Libretro-Admin's avatar
Libretro-Admin committed
63
  extends:
Libretro-Admin's avatar
Update    
Libretro-Admin committed
64
    - .libretro-windows-x64-mingw-make-default
Libretro-Admin's avatar
Libretro-Admin committed
65
    - .core-defs
Libretro-Admin's avatar
Update    
Libretro-Admin committed
66
    
Libretro-Admin's avatar
Libretro-Admin committed
67
68
69
70
71
72
# Windows 32-bit
libretro-build-windows-i686:
  extends:
    - .libretro-windows-i686-mingw-make-default
    - .core-defs
    
Libretro-Admin's avatar
Update    
Libretro-Admin committed
73
74
75
# Linux 64-bit
libretro-build-linux-x64:
  extends:
Libretro-Admin's avatar
Libretro-Admin committed
76
    - .libretro-linux-x64-make-default
Libretro-Admin's avatar
Update    
Libretro-Admin committed
77
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
78

Libretro-Admin's avatar
Update    
Libretro-Admin committed
79
# MacOS 64-bit
Libretro-Admin's avatar
Update    
Libretro-Admin committed
80
81
82
83
#libretro-build-osx-x64:
#extends:
#- .libretro-osx-x64-make-default
#- .core-defs
Libretro-Admin's avatar
Update    
Libretro-Admin committed
84
85
86

################################### CELLULAR #################################
# Android ARMv7a
Libretro-Admin's avatar
Libretro-Admin committed
87
88
89
android-armeabi-v7a:
  extends:
    - .libretro-android-jni-armeabi-v7a
Libretro-Admin's avatar
Update    
Libretro-Admin committed
90
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
91

Libretro-Admin's avatar
Update    
Libretro-Admin committed
92
# Android ARMv8a
Libretro-Admin's avatar
Libretro-Admin committed
93
94
95
android-arm64-v8a:
  extends:
    - .libretro-android-jni-arm64-v8a
Libretro-Admin's avatar
Update    
Libretro-Admin committed
96
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
97

Libretro-Admin's avatar
Update    
Libretro-Admin committed
98
# Android 64-bit x86
Libretro-Admin's avatar
Libretro-Admin committed
99
100
101
android-x86_64:
  extends:
    - .libretro-android-jni-x86_64
Libretro-Admin's avatar
Update    
Libretro-Admin committed
102
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
103
    
Libretro-Admin's avatar
Update    
Libretro-Admin committed
104
# Android 32-bit x86
Libretro-Admin's avatar
Libretro-Admin committed
105
106
107
android-x86:
  extends:
    - .libretro-android-jni-x86
Libretro-Admin's avatar
Update    
Libretro-Admin committed
108
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
109

Libretro-Admin's avatar
Update    
Libretro-Admin committed
110
################################### CONSOLES #################################
Libretro-Admin's avatar
Libretro-Admin committed
111
112
113
114
115
116
# Nintendo WiiU
libretro-build-wiiu:
  extends:
    - .libretro-wiiu-static-retroarch-master
    - .core-defs
    
Libretro-Admin's avatar
Update    
Libretro-Admin committed
117
# Nintendo Switch
Libretro-Admin's avatar
Libretro-Admin committed
118
119
120
libretro-build-libnx-aarch64:
  extends:
    - .libretro-libnx-static-retroarch-master
Libretro-Admin's avatar
Update    
Libretro-Admin committed
121
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
122

Libretro-Admin's avatar
Update    
Libretro-Admin committed
123
124
# PlayStation Portable
libretro-build-psp:
Libretro-Admin's avatar
Libretro-Admin committed
125
  extends:
Libretro-Admin's avatar
Update    
Libretro-Admin committed
126
    - .libretro-psp-static-retroarch-master
Libretro-Admin's avatar
Libretro-Admin committed
127
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
128

Libretro-Admin's avatar
Update    
Libretro-Admin committed
129
130
# PlayStation Vita
libretro-build-vita:
Libretro-Admin's avatar
Libretro-Admin committed
131
  extends:
Libretro-Admin's avatar
Update    
Libretro-Admin committed
132
    - .libretro-vita-static-retroarch-master
Libretro-Admin's avatar
Libretro-Admin committed
133
    - .core-defs