Remove libretro CI builds that definitely won't work due to hardware memory limitations

This commit is contained in:
刘皓 2025-01-29 00:56:46 -05:00
parent b249ad0d98
commit b271ff7ade
No known key found for this signature in database
GPG key ID: 7901753DB465B711

View file

@ -749,33 +749,11 @@ jobs:
name: libretro-mkxp-z.darwin.${{ matrix.arch_mkxpz }}.${{ github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name }}-${{ steps.short-sha.outputs.sha }}
path: ${{ runner.temp }}/retro-phase2
build-retro-phase2-nintendo:
build-retro-phase2-wiiu:
needs: build-retro-phase1
name: LR Nintendo ${{ matrix.arch_mkxpz }}
name: LR Wii U
runs-on: ubuntu-latest
container: devkitpro/devkit${{ matrix.arch_devkitpro }}:latest
strategy:
fail-fast: false
matrix:
include:
- arch_mkxpz: armv6
arch_gcc: arm-none-eabi
arch_devkitpro: arm
cpu_family: arm
cpu: generic-armv6k
endian: little
- arch_mkxpz: arm64
arch_gcc: aarch64-none-elf
arch_devkitpro: a64
cpu_family: aarch64
cpu: generic-armv8-a
endian: little
- arch_mkxpz: power
arch_gcc: powerpc-eabi
arch_devkitpro: ppc
cpu_family: ppc
cpu: ppc
endian: big
container: devkitpro/devkitppc:latest
steps:
- id: short-sha
uses: benjlevesque/short-sha@v2.2
@ -799,72 +777,15 @@ jobs:
- name: Build phase 2
run: |
echo "[binaries]" | tee -a ~/cross.ini
echo "c = '/opt/devkitpro/devkit$(echo ${{ matrix.arch_devkitpro }} | tr a-z A-Z)/bin/${{ matrix.arch_gcc }}-gcc'" | tee -a ~/cross.ini
echo "cpp = '/opt/devkitpro/devkit$(echo ${{ matrix.arch_devkitpro }} | tr a-z A-Z)/bin/${{ matrix.arch_gcc }}-g++'" | tee -a ~/cross.ini
echo "ar = '/opt/devkitpro/devkit$(echo ${{ matrix.arch_devkitpro }} | tr a-z A-Z)/bin/${{ matrix.arch_gcc }}-ar'" | tee -a ~/cross.ini
echo "strip = '/opt/devkitpro/devkit$(echo ${{ matrix.arch_devkitpro }} | tr a-z A-Z)/bin/${{ matrix.arch_gcc }}-strip'" | tee -a ~/cross.ini
echo "c = '/opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc'" | tee -a ~/cross.ini
echo "cpp = '/opt/devkitpro/devkitPPC/bin/powerpc-eabi-g++'" | tee -a ~/cross.ini
echo "ar = '/opt/devkitpro/devkitPPC/bin/powerpc-eabi-ar'" | tee -a ~/cross.ini
echo "strip = '/opt/devkitpro/devkitPPC/bin/powerpc-eabi-strip'" | tee -a ~/cross.ini
echo "[host_machine]" | tee -a ~/cross.ini
echo "system = 'bare'" | tee -a ~/cross.ini
echo "cpu_family = '${{ matrix.cpu_family }}'" | tee -a ~/cross.ini
echo "cpu = '${{ matrix.cpu }}'" | tee -a ~/cross.ini
echo "endian = '${{ matrix.endian }}'" | tee -a ~/cross.ini
echo '--------------------------------------------------------------------------------'
mkdir ~/retro-phase2
cp retro/core.info ~/retro-phase2/libretro-mkxp-z.info
if [ '${{ matrix.arch_devkitpro }}' != 'a64' ] # Enabling LTO with devkitA64 causes "plugin needed to handle lto object" linker error
then
lto_arg='-Db_lto=true'
else
lto_arg='-Db_lto=false'
fi
meson setup build --cross-file ~/cross.ini --default-library static --buildtype release $lto_arg -Dretro=true -Dretro_phase1_path=retro/build/retro-phase1
cd build
ninja -v
/opt/devkitpro/devkit$(echo ${{ matrix.arch_devkitpro }} | tr a-z A-Z)/bin/${{ matrix.arch_gcc }}-strip libretro-mkxp-z.a
mv libretro-mkxp-z.a ~/retro-phase2
- uses: actions/upload-artifact@v4
with:
name: libretro-mkxp-z.nintendo.${{ matrix.arch_mkxpz }}.${{ github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name }}-${{ steps.short-sha.outputs.sha }}
path: ~/retro-phase2
build-retro-phase2-ps2:
needs: build-retro-phase1
name: LR PlayStation 2
runs-on: ubuntu-latest
container: ps2dev/ps2dev:latest
steps:
- id: short-sha
uses: benjlevesque/short-sha@v2.2
with:
length: 7
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: retro-phase1.${{ github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name }}-${{ steps.short-sha.outputs.sha }}
path: retro/build/retro-phase1
- name: Install dependencies
run: |
apk update
apk add git build-base meson cmake
- name: Build phase 2
run: |
echo "[binaries]" | tee -a ~/cross.ini
echo "c = 'mips64r5900el-ps2-elf-gcc'" | tee -a ~/cross.ini
echo "cpp = 'mips64r5900el-ps2-elf-g++'" | tee -a ~/cross.ini
echo "ar = 'mips64r5900el-ps2-elf-ar'" | tee -a ~/cross.ini
echo "strip = 'mips64r5900el-ps2-elf-strip'" | tee -a ~/cross.ini
echo "[host_machine]" | tee -a ~/cross.ini
echo "system = 'bare'" | tee -a ~/cross.ini
echo "cpu_family = 'mips64'" | tee -a ~/cross.ini
echo "cpu = 'mips64el'" | tee -a ~/cross.ini
echo "endian = 'little'" | tee -a ~/cross.ini
echo "cpu_family = 'ppc'" | tee -a ~/cross.ini
echo "cpu = 'ppc'" | tee -a ~/cross.ini
echo "endian = 'big'" | tee -a ~/cross.ini
echo '--------------------------------------------------------------------------------'
mkdir ~/retro-phase2
@ -872,19 +793,19 @@ jobs:
meson setup build --cross-file ~/cross.ini --default-library static --buildtype release -Db_lto=true -Dretro=true -Dretro_phase1_path=retro/build/retro-phase1
cd build
ninja -v
mips64r5900el-ps2-elf-strip libretro-mkxp-z.a
/opt/devkitpro/devkitPPC/bin/powerpc-eabi-strip libretro-mkxp-z.a
mv libretro-mkxp-z.a ~/retro-phase2
- uses: actions/upload-artifact@v4
with:
name: libretro-mkxp-z.ps2.${{ github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name }}-${{ steps.short-sha.outputs.sha }}
name: libretro-mkxp-z.wiiu.${{ github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name }}-${{ steps.short-sha.outputs.sha }}
path: ~/retro-phase2
build-retro-phase2-psp:
build-retro-phase2-switch:
needs: build-retro-phase1
name: LR PlayStation Portable
name: LR Nintendo Switch
runs-on: ubuntu-latest
container: pspdev/pspdev:latest
container: devkitpro/devkita64:latest
steps:
- id: short-sha
uses: benjlevesque/short-sha@v2.2
@ -901,32 +822,34 @@ jobs:
- name: Install dependencies
run: |
apk update
apk add git build-base meson cmake
apt update
apt install -y git build-essential pip ninja-build cmake
pip install meson
- name: Build phase 2
run: |
echo "[binaries]" | tee -a ~/cross.ini
echo "c = 'psp-gcc'" | tee -a ~/cross.ini
echo "cpp = 'psp-g++'" | tee -a ~/cross.ini
echo "ar = 'psp-ar'" | tee -a ~/cross.ini
echo "strip = 'psp-strip'" | tee -a ~/cross.ini
echo "c = '/opt/devkitpro/devkitA64/bin/aarch64-none-elf-gcc'" | tee -a ~/cross.ini
echo "cpp = '/opt/devkitpro/devkitA64/bin/aarch64-none-elf-g++'" | tee -a ~/cross.ini
echo "ar = '/opt/devkitpro/devkitA64/bin/aarch64-none-elf-ar'" | tee -a ~/cross.ini
echo "strip = '/opt/devkitpro/devkitA64/bin/aarch64-none-elf-strip'" | tee -a ~/cross.ini
echo "[host_machine]" | tee -a ~/cross.ini
echo "system = 'bare'" | tee -a ~/cross.ini
echo "cpu_family = 'mips64'" | tee -a ~/cross.ini
echo "cpu = 'mips64el'" | tee -a ~/cross.ini
echo "cpu_family = 'aarch64'" | tee -a ~/cross.ini
echo "cpu = 'generic-armv8-a'" | tee -a ~/cross.ini
echo "endian = 'little'" | tee -a ~/cross.ini
echo '--------------------------------------------------------------------------------'
mkdir ~/retro-phase2
cp retro/core.info ~/retro-phase2/libretro-mkxp-z.info
meson setup build --cross-file ~/cross.ini --default-library static -Db_staticpic=false --buildtype release -Db_lto=true -Dretro=true -Dretro_phase1_path=retro/build/retro-phase1
# Enabling LTO with devkitA64 causes "plugin needed to handle lto object" linker error
meson setup build --cross-file ~/cross.ini --default-library static --buildtype release -Db_lto=false -Dretro=true -Dretro_phase1_path=retro/build/retro-phase1
cd build
ninja -v
psp-strip libretro-mkxp-z.a
/opt/devkitpro/devkitA64/bin/aarch64-none-elf-strip libretro-mkxp-z.a
mv libretro-mkxp-z.a ~/retro-phase2
- uses: actions/upload-artifact@v4
with:
name: libretro-mkxp-z.psp.${{ github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name }}-${{ steps.short-sha.outputs.sha }}
name: libretro-mkxp-z.switch.${{ github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name }}-${{ steps.short-sha.outputs.sha }}
path: ~/retro-phase2