.gitlab-ci.yml 2.68 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
11
12
.core-defs:
  variables:
    JNI_PATH: .
    CORENAME: vemulator

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
18
  - project: 'libretro-infrastructure/ci-templates'
    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
  # Linux 64-bit
  - project: 'libretro-infrastructure/ci-templates'
    file: '/linux-x64.yml'
Libretro-Admin's avatar
Libretro-Admin committed
27
28
29
30
31

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

Libretro-Admin's avatar
Libretro-Admin committed
32
33
  ################################## CELLULAR ################################
  # Android
Libretro-Admin's avatar
Libretro-Admin committed
34
35
36
  - project: 'libretro-infrastructure/ci-templates'
    file: '/android-jni.yml'

Libretro-Admin's avatar
Libretro-Admin committed
37
38
39
40
  # iOS 9
  - project: 'libretro-infrastructure/ci-templates'
    file: '/ios9.yml'

Libretro-Admin's avatar
Libretro-Admin committed
41
# Stages for building
Libretro-Admin's avatar
Libretro-Admin committed
42
43
44
45
46
stages:
  - build-prepare
  - build-shared
  - build-static

Libretro-Admin's avatar
Libretro-Admin committed
47
48
49
50
51
52
53
##############################################################################
#################################### STAGES ##################################
##############################################################################
#
################################### DESKTOPS #################################
# Windows 64-bit
libretro-build-windows-x64:
Libretro-Admin's avatar
Libretro-Admin committed
54
  extends:
Libretro-Admin's avatar
Libretro-Admin committed
55
    - .libretro-windows-x64-mingw-make-default
Libretro-Admin's avatar
Libretro-Admin committed
56
57
    - .core-defs

Libretro-Admin's avatar
Libretro-Admin committed
58
59
60
61
62
63
# Windows 32-bit
libretro-build-windows-i686:
  extends:
    - .libretro-windows-i686-mingw-make-default
    - .core-defs

Libretro-Admin's avatar
Libretro-Admin committed
64
65
# Linux 64-bit
libretro-build-linux-x64:
Libretro-Admin's avatar
Libretro-Admin committed
66
  extends:
Libretro-Admin's avatar
Libretro-Admin committed
67
    - .libretro-linux-x64-make-default
Libretro-Admin's avatar
Libretro-Admin committed
68
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
69
70
71
72
73
74
75

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

Libretro-Admin's avatar
Libretro-Admin committed
76
77
################################### CELLULAR #################################
# Android ARMv7a
Libretro-Admin's avatar
Libretro-Admin committed
78
79
80
android-armeabi-v7a:
  extends:
    - .libretro-android-jni-armeabi-v7a
Libretro-Admin's avatar
Libretro-Admin committed
81
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
82

Libretro-Admin's avatar
Libretro-Admin committed
83
# Android ARMv8a
Libretro-Admin's avatar
Libretro-Admin committed
84
85
86
android-arm64-v8a:
  extends:
    - .libretro-android-jni-arm64-v8a
Libretro-Admin's avatar
Libretro-Admin committed
87
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
88

Libretro-Admin's avatar
Libretro-Admin committed
89
# Android 64-bit x86
Libretro-Admin's avatar
Libretro-Admin committed
90
91
92
android-x86_64:
  extends:
    - .libretro-android-jni-x86_64
Libretro-Admin's avatar
Libretro-Admin committed
93
94
95
    - .core-defs

# Android 32-bit x86
Libretro-Admin's avatar
Libretro-Admin committed
96
97
98
android-x86:
  extends:
    - .libretro-android-jni-x86
Libretro-Admin's avatar
Libretro-Admin committed
99
    - .core-defs
Libretro-Admin's avatar
Libretro-Admin committed
100
101
102
103
104
105

# iOS 9
libretro-build-ios-9:
  extends:
    - .libretro-ios9-make-default
    - .core-defs