Skip to content

Commit f38a0bb

Browse files
authored
Merge pull request #537 from skylersaleh/dev
SkyEmu v5
2 parents a47b820 + 246ba26 commit f38a0bb

File tree

9 files changed

+701
-380
lines changed

9 files changed

+701
-380
lines changed

.github/workflows/deploy_retro_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
run: |
1717
mkdir build
1818
cd build
19-
cmake .. && cmake --build . --target skyemu_libretro --config Release
19+
cmake -DRETRO_CORE_ONLY=ON .. && cmake --build . --target skyemu_libretro --config Release
2020
zip skyemu_libretro.zip skyemu_libretro.so ../skyemu_libretro.info
2121
- name: GH Release 🚀
2222
# You may pin to the exact commit or the version.

.github/workflows/deploy_retro_mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
run: |
1111
mkdir build
1212
cd build
13-
cmake .. && cmake --build . --target skyemu_libretro
13+
cmake -DRETRO_CORE_ONLY=ON .. && cmake --build . --target skyemu_libretro
1414
zip skyemu_libretro.zip skyemu_libretro.dylib ../skyemu_libretro.info
1515
- name: GH Release 🚀
1616
# You may pin to the exact commit or the version.

.github/workflows/deploy_retro_win.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
run: |
1414
mkdir build
1515
cd build
16-
cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.19041.0 ..
16+
cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.19041.0 -DRETRO_CORE_ONLY=ON ..
1717
cmake --build . --config Release --target skyemu_libretro
1818
mkdir skyemu_libretro_zip
1919
mv bin/Release/skyemu_libretro.dll skyemu_libretro_zip

.gitlab-ci.yml

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
# DESCRIPTION: GitLab CI/CD for libRetro (NOT FOR GitLab-proper)
2+
3+
##############################################################################
4+
################################# BOILERPLATE ################################
5+
##############################################################################
6+
7+
# Core definitions
8+
.core-defs:
9+
variables:
10+
GIT_SUBMODULE_STRATEGY: recursive
11+
CORENAME: skyemu
12+
CORE_ARGS: -DRETRO_CORE_ONLY=ON
13+
14+
.core-defs-win:
15+
extends: .core-defs
16+
variables:
17+
EXTRA_PATH: bin
18+
19+
.core-defs-linux:
20+
extends: .core-defs
21+
variables:
22+
CC: /usr/bin/gcc-12
23+
CXX: /usr/bin/g++-12
24+
25+
.core-defs-osx-x64:
26+
extends: .core-defs
27+
variables:
28+
CORE_ARGS: -G Xcode -DRETRO_CORE_ONLY=ON -DCMAKE_OSX_ARCHITECTURES=x86_64
29+
EXTRA_PATH: Release
30+
31+
.core-defs-osx-arm64:
32+
extends: .core-defs
33+
variables:
34+
CORE_ARGS: -G Xcode -DRETRO_CORE_ONLY=ON
35+
EXTRA_PATH: Release
36+
37+
.core-defs-ios-arm64:
38+
extends: .core-defs
39+
variables:
40+
CORE_ARGS: -DCMAKE_OSX_DEPLOYMENT_TARGET=13.0 -DRETRO_CORE_ONLY=ON
41+
IOS_MINVER: 13.0
42+
MINVER: 13.0
43+
44+
.core-defs-android:
45+
extends: .core-defs
46+
script:
47+
- cmake -DANDROID_PLATFORM=android-$API_LEVEL -DRETRO_CORE_ONLY=ON -DCMAKE_TOOLCHAIN_FILE=$NDK_ROOT/build/cmake/android.toolchain.cmake -DANDROID_STL=c++_static -DANDROID_ABI=$ANDROID_ABI -DANDROID_ARM_MODE=arm "$CMAKE_SOURCE_ROOT" -B$BUILD_DIR
48+
- cmake --build $BUILD_DIR --target ${CORENAME}_libretro --config Release -- -j $NUMPROC
49+
- mv $BUILD_DIR/${CORENAME}_libretro.so $LIBNAME
50+
- if [ $STRIP_CORE_LIB -eq 1 ]; then $NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip $LIBNAME; fi
51+
variables:
52+
API_LEVEL: 18
53+
54+
# Inclusion templates, required for the build to work
55+
include:
56+
################################## DESKTOPS ################################
57+
# Windows
58+
- project: 'libretro-infrastructure/ci-templates'
59+
file: '/windows-cmake-mingw.yml'
60+
61+
# MacOS
62+
- project: 'libretro-infrastructure/ci-templates'
63+
file: 'osx-cmake-x86.yml'
64+
65+
# MacOS arm64
66+
- project: 'libretro-infrastructure/ci-templates'
67+
file: 'osx-cmake-arm64.yml'
68+
69+
# Linux
70+
- project: 'libretro-infrastructure/ci-templates'
71+
file: '/linux-cmake.yml'
72+
73+
################################## CELLULAR ################################
74+
# Android
75+
- project: 'libretro-infrastructure/ci-templates'
76+
file: '/android-cmake.yml'
77+
78+
# iOS arm64
79+
- project: 'libretro-infrastructure/ci-templates'
80+
file: '/ios-cmake.yml'
81+
82+
################################## CONSOLES ################################
83+
# Nintendo Switch
84+
- project: 'libretro-infrastructure/ci-templates'
85+
file: '/libnx-static.yml'
86+
87+
# tvOS arm64
88+
- project: 'libretro-infrastructure/ci-templates'
89+
file: '/tvos-cmake.yml'
90+
91+
# Stages for building
92+
stages:
93+
- build-prepare
94+
- build-shared
95+
# - build-static
96+
97+
##############################################################################
98+
#################################### STAGES ##################################
99+
##############################################################################
100+
#
101+
################################### DESKTOPS #################################
102+
# Windows 64-bit
103+
libretro-build-windows-x64:
104+
extends:
105+
- .libretro-windows-cmake-x86_64
106+
- .core-defs-win
107+
108+
# Windows 32-bit
109+
libretro-build-windows-i686:
110+
extends:
111+
- .libretro-windows-cmake-x86
112+
- .core-defs-win
113+
114+
# Linux 64-bit
115+
libretro-build-linux-x64:
116+
extends:
117+
- .libretro-linux-cmake-x86_64
118+
- .core-defs-linux
119+
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-amd64-ubuntu:backports
120+
121+
# Linux 32-bit
122+
libretro-build-linux-i686:
123+
extends:
124+
- .libretro-linux-cmake-x86
125+
- .core-defs-linux
126+
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-i386-ubuntu:backports
127+
128+
# MacOS 64-bit
129+
libretro-build-osx-x64:
130+
extends:
131+
- .libretro-osx-cmake-x86
132+
- .core-defs-osx-x64
133+
tags:
134+
- mac-apple-silicon
135+
136+
# MacOS arm 64-bit
137+
libretro-build-osx-arm64:
138+
extends:
139+
- .libretro-osx-cmake-arm64
140+
- .core-defs-osx-arm64
141+
142+
################################### CELLULAR #################################
143+
# Android ARMv7a
144+
android-armeabi-v7a:
145+
extends:
146+
- .libretro-android-cmake-armeabi-v7a
147+
- .core-defs-android
148+
149+
# Android ARMv8a
150+
android-arm64-v8a:
151+
extends:
152+
- .libretro-android-cmake-arm64-v8a
153+
- .core-defs-android
154+
155+
# Android 64-bit x86
156+
android-x86_64:
157+
extends:
158+
- .libretro-android-cmake-x86_64
159+
- .core-defs-android
160+
161+
# Android 32-bit x86
162+
android-x86:
163+
extends:
164+
- .libretro-android-cmake-x86
165+
- .core-defs-android
166+
167+
libretro-build-ios-arm64:
168+
extends:
169+
- .libretro-ios-cmake-arm64
170+
- .core-defs-ios-arm64
171+
172+
################################### CONSOLES #################################
173+
# Nintendo Switch
174+
#libretro-build-libnx-aarch64:
175+
# extends:
176+
# - .libretro-libnx-static-retroarch-master
177+
# - .core-defs
178+
179+
# tvOS arm64
180+
libretro-build-tvos-arm64:
181+
extends:
182+
- .libretro-tvos-cmake-arm64
183+
- .core-defs-ios-arm64

0 commit comments

Comments
 (0)