mirror of
https://github.com/libretro/RetroArch
synced 2025-04-04 04:20:29 +00:00
Add PSVita github workflow
This commit is contained in:
parent
dab528ca11
commit
1135bf0534
39
.github/workflows/PSVita.yml
vendored
Normal file
39
.github/workflows/PSVita.yml
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
name: CI PSVita
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
repository_dispatch:
|
||||||
|
types: [run_build]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: git.libretro.com:5050/libretro-infrastructure/libretro-build-vita:latest
|
||||||
|
options: --user root
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Compile Salamander
|
||||||
|
run: |
|
||||||
|
make -f Makefile.vita.salamander -j$(getconf _NPROCESSORS_ONLN) clean
|
||||||
|
make -f Makefile.vita.salamander -j$(getconf _NPROCESSORS_ONLN)
|
||||||
|
|
||||||
|
- name: Compile RA
|
||||||
|
run: |
|
||||||
|
make -f Makefile.vita -j$(getconf _NPROCESSORS_ONLN) clean
|
||||||
|
make -f Makefile.vita -j$(getconf _NPROCESSORS_ONLN) HAVE_STATIC_DUMMY=1 HAVE_VITAGLES=1
|
||||||
|
- name: Get short SHA
|
||||||
|
id: slug
|
||||||
|
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: RA-PSVita-dummy-${{ steps.slug.outputs.sha8 }}
|
||||||
|
path: |
|
||||||
|
eboot.bin
|
@ -3,6 +3,7 @@ DEBUG ?= 0
|
|||||||
HAVE_FILE_LOGGER = 1
|
HAVE_FILE_LOGGER = 1
|
||||||
GRIFFIN_BUILD = 0
|
GRIFFIN_BUILD = 0
|
||||||
WHOLE_ARCHIVE_LINK = 0
|
WHOLE_ARCHIVE_LINK = 0
|
||||||
|
HAVE_STATIC_DUMMY ?= 0
|
||||||
|
|
||||||
VITA_TITLE_ID := RETROARCH
|
VITA_TITLE_ID := RETROARCH
|
||||||
VITA_TITLE_NAME := RetroArch
|
VITA_TITLE_NAME := RetroArch
|
||||||
@ -181,7 +182,15 @@ else
|
|||||||
FSELF_FLAGS := -s
|
FSELF_FLAGS := -s
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LIBS := $(WHOLE_START) -lretro_vita $(WHOLE_END) $(VITA_LIBS) -lm -lc
|
LIBS := $(WHOLE_START)
|
||||||
|
|
||||||
|
ifeq ($(HAVE_STATIC_DUMMY),1)
|
||||||
|
DEFINES += -DHAVE_STATIC_DUMMY
|
||||||
|
else
|
||||||
|
LIBS += -lretro_vita
|
||||||
|
endif
|
||||||
|
|
||||||
|
LIBS += $(WHOLE_END) $(VITA_LIBS) -lm -lc
|
||||||
|
|
||||||
TARGETS := $(TARGET).vpk
|
TARGETS := $(TARGET).vpk
|
||||||
|
|
||||||
@ -218,7 +227,7 @@ liblibScePiglet_stub.a:
|
|||||||
make -C deps/Pigs-In-A-Blanket/piglet_stub/libScePiglet ARCH=arm-vita-eabi
|
make -C deps/Pigs-In-A-Blanket/piglet_stub/libScePiglet ARCH=arm-vita-eabi
|
||||||
cp deps/Pigs-In-A-Blanket/piglet_stub/libScePiglet/liblibScePiglet_stub.a .
|
cp deps/Pigs-In-A-Blanket/piglet_stub/libScePiglet/liblibScePiglet_stub.a .
|
||||||
|
|
||||||
$(TARGET).elf: $(OBJ) libretro_vita.a liblibScePiglet_stub.a
|
$(TARGET).elf: $(OBJ) liblibScePiglet_stub.a
|
||||||
$(LD) $(OBJ) $(LDFLAGS) $(LIBDIRS) $(LIBS) -o $@
|
$(LD) $(OBJ) $(LDFLAGS) $(LIBDIRS) $(LIBS) -o $@
|
||||||
|
|
||||||
%.velf: %.elf
|
%.velf: %.elf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user