Add PS3 build to GitHub Actions (#17621)
This commit is contained in:
parent
84eb4f32e0
commit
c9ed5df025
|
@ -0,0 +1,44 @@
|
||||||
|
name: CI PS3/PSL1GHT
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
repository_dispatch:
|
||||||
|
types: [run_build]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
env:
|
||||||
|
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: git.libretro.com:5050/libretro-infrastructure/libretro-build-psl1ght:latest
|
||||||
|
options: --user root
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Compile Salamander
|
||||||
|
run: |
|
||||||
|
make -f Makefile.psl1ght.salamander -j$(getconf _NPROCESSORS_ONLN) clean
|
||||||
|
make -f Makefile.psl1ght.salamander -j$(getconf _NPROCESSORS_ONLN)
|
||||||
|
|
||||||
|
- name: Compile RA
|
||||||
|
run: |
|
||||||
|
make -f Makefile.psl1ght -j$(getconf _NPROCESSORS_ONLN) clean
|
||||||
|
make -f Makefile.psl1ght -j$(getconf _NPROCESSORS_ONLN) HAVE_STATIC_DUMMY=1
|
||||||
|
|
||||||
|
- name: Get short SHA
|
||||||
|
id: slug
|
||||||
|
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: RA-psl1ght-dummy-${{ steps.slug.outputs.sha8 }}
|
||||||
|
path: |
|
||||||
|
retroarch_psl1ght_salamander.elf
|
||||||
|
retroarch_psl1ght.elf
|
|
@ -30,10 +30,17 @@ CORE_PATH = pkg/psl1ght/pkg/USRDIR/cores/CORE.SELF
|
||||||
INCLUDE += -I. -Ideps -Ideps/stb -Ilibretro-common/include/compat/zlib -Ilibretro-common/include $(LIBPSL1GHT_INC) -Iinclude -Idefines -I$(PORTLIBS)/include -I$(PORTLIBS)/include/freetype2
|
INCLUDE += -I. -Ideps -Ideps/stb -Ilibretro-common/include/compat/zlib -Ilibretro-common/include $(LIBPSL1GHT_INC) -Iinclude -Idefines -I$(PORTLIBS)/include -I$(PORTLIBS)/include/freetype2
|
||||||
LIBDIRS += -L. -L$(PORTLIBS)/lib
|
LIBDIRS += -L. -L$(PORTLIBS)/lib
|
||||||
|
|
||||||
|
ifeq ($(HAVE_STATIC_DUMMY),1)
|
||||||
|
DEFINES += -DHAVE_STATIC_DUMMY
|
||||||
|
LIBS :=
|
||||||
|
else
|
||||||
|
LIBS := -lretro_psl1ght
|
||||||
|
endif
|
||||||
|
|
||||||
MACHDEP := -D__PSL1GHT__ -D__PS3__ -mcpu=cell
|
MACHDEP := -D__PSL1GHT__ -D__PS3__ -mcpu=cell
|
||||||
CFLAGS += -Wall $(MACHDEP) $(INCLUDE)
|
CFLAGS += -Wall $(DEFINES) $(MACHDEP) $(INCLUDE)
|
||||||
LDFLAGS := $(MACHDEP)
|
LDFLAGS := $(MACHDEP)
|
||||||
LIBS := -lretro_psl1ght -lrt -laudio -lrsx -lgcm_sys -lnet -lio -lsysutil -lsysmodule -lm -ljpgdec -lpngdec -llv2 -lnet -lnetctl -lsysfs -lfreetype -lcamera -lgem -lspurs
|
LIBS += -lrt -laudio -lrsx -lgcm_sys -lnet -lio -lsysutil -lsysmodule -lm -ljpgdec -lpngdec -llv2 -lnet -lnetctl -lsysfs -lfreetype -lcamera -lgem -lspurs
|
||||||
|
|
||||||
# system platform
|
# system platform
|
||||||
system_platform = unix
|
system_platform = unix
|
||||||
|
|
Loading…
Reference in New Issue