@@ -1161,69 +1161,6 @@ jobs:
11611161 name : mkxp-z_libretro.wiiu.${{ github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name }}-${{ steps.short-sha.outputs.sha }}
11621162 path : ~/dist
11631163
1164- build-libretro-ps4 :
1165- needs : build-libretro-stage1
1166- name : LR PlayStation 4
1167- runs-on : ubuntu-latest
1168- container : orbisdev/orbisdev:latest
1169- steps :
1170- - name : Install dependencies
1171- run : |
1172- apk update
1173- apk add git build-base meson cmake jq
1174-
1175- - id : short-sha
1176- name : Get Git commit hash
1177- uses :
benjlevesque/[email protected] 1178- with :
1179- length : 7
1180-
1181- - name : Checkout repository
1182- uses : actions/checkout@v4
1183-
1184- - name : Download stage 1
1185- uses : actions/download-artifact@v4
1186- with :
1187- name : stage1.${{ github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name }}-${{ steps.short-sha.outputs.sha }}
1188- path : libretro/build/libretro-stage1
1189-
1190- - name : Configure core
1191- run : |
1192- echo "[binaries]" | tee -a ~/cross.ini
1193- echo "c = 'clang'" | tee -a ~/cross.ini
1194- echo "cpp = 'clang++'" | tee -a ~/cross.ini
1195- echo "ar = 'orbis-ar'" | tee -a ~/cross.ini
1196- echo "[host_machine]" | tee -a ~/cross.ini
1197- echo "system = 'bare'" | tee -a ~/cross.ini
1198- echo "cpu_family = 'x86_64'" | tee -a ~/cross.ini
1199- echo "cpu = 'x86_64'" | tee -a ~/cross.ini
1200- echo "endian = 'little'" | tee -a ~/cross.ini
1201- echo '--------------------------------------------------------------------------------'
1202- git config --global --add safe.directory "$(pwd)"
1203- CLICOLOR_FORCE=1 meson setup build --cross-file ~/cross.ini --buildtype release -Db_lto=false -Dlibretro=true
1204-
1205- - name : Build core
1206- run : |
1207- mkdir ~/dist
1208- cd build
1209- CLICOLOR_FORCE=1 ninja -v
1210- mv mkxp-z_libretro.a ~
1211-
1212- - name : Build frontend
1213- run : |
1214- cd ~
1215- git clone https://github.com/libretro/RetroArch retroarch --depth 1 -b $(curl -s https://api.github.com/repos/libretro/RetroArch/releases/latest | jq -r '.tag_name')
1216- mv mkxp-z_libretro.a retroarch/libretro_orbis.a
1217- cd retroarch
1218- CLICOLOR_FORCE=1 make -f Makefile.orbis LIBRETRO=mkxp-z
1219- mv retroarch_orbis.self ~/dist/mkxp-z_libretro.self
1220-
1221- - name : Upload artifact
1222- uses : actions/upload-artifact@v4
1223- with :
1224- name : mkxp-z_libretro.ps4.${{ github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name }}-${{ steps.short-sha.outputs.sha }}
1225- path : ~/dist
1226-
12271164 build-libretro-switch :
12281165 needs : build-libretro-stage1
12291166 name : LR Nintendo Switch
0 commit comments