Add 3DS workflow
This commit is contained in:
parent
5739c537a2
commit
30bdd8b447
|
@ -0,0 +1,39 @@
|
||||||
|
name: CI 3DS
|
||||||
|
|
||||||
|
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-devkitpro:latest
|
||||||
|
options: --user root
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Compile Salamander
|
||||||
|
run: |
|
||||||
|
make -f Makefile.ctr.salamander -j$(getconf _NPROCESSORS_ONLN) USE_CTRULIB_2=1 clean
|
||||||
|
make -f Makefile.ctr.salamander -j$(getconf _NPROCESSORS_ONLN) USE_CTRULIB_2=1
|
||||||
|
|
||||||
|
- name: Compile RA
|
||||||
|
run: |
|
||||||
|
make -f Makefile.ctr -j$(getconf _NPROCESSORS_ONLN) USE_CTRULIB_2=1 clean
|
||||||
|
make -f Makefile.ctr -j$(getconf _NPROCESSORS_ONLN) USE_CTRULIB_2=1 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@v3
|
||||||
|
with:
|
||||||
|
name: RA-3DS-dummy-${{ steps.slug.outputs.sha8 }}
|
||||||
|
path: |
|
||||||
|
retroarch_3ds.cia
|
16
Makefile.ctr
16
Makefile.ctr
|
@ -4,6 +4,7 @@ LIBRETRO =
|
||||||
DEBUG = 0
|
DEBUG = 0
|
||||||
CONSOLE_LOG = 0
|
CONSOLE_LOG = 0
|
||||||
GRIFFIN_BUILD = 1
|
GRIFFIN_BUILD = 1
|
||||||
|
HAVE_STATIC_DUMMY ?= 0
|
||||||
WHOLE_ARCHIVE_LINK = 0
|
WHOLE_ARCHIVE_LINK = 0
|
||||||
BUILD_3DSX = 1
|
BUILD_3DSX = 1
|
||||||
BUILD_3DS = 0
|
BUILD_3DS = 0
|
||||||
|
@ -201,10 +202,19 @@ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11
|
||||||
|
|
||||||
ASFLAGS := -g $(ARCH) -O3
|
ASFLAGS := -g $(ARCH) -O3
|
||||||
LDFLAGS += -specs=ctr/3dsx_custom.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
|
LDFLAGS += -specs=ctr/3dsx_custom.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
|
||||||
|
|
||||||
CFLAGS += -std=gnu99 -ffast-math
|
CFLAGS += -std=gnu99 -ffast-math
|
||||||
|
|
||||||
LIBS := $(WHOLE_START) -lretro_ctr $(WHOLE_END) -lm
|
LIB_CORE :=
|
||||||
|
LIB_CORE_FULL :=
|
||||||
|
|
||||||
|
ifeq ($(HAVE_STATIC_DUMMY),1)
|
||||||
|
DEFINES += -DHAVE_STATIC_DUMMY
|
||||||
|
else
|
||||||
|
LIB_CORE += -lretro_ctr
|
||||||
|
LIB_CORE_FULL += libretro_ctr.a
|
||||||
|
endif
|
||||||
|
|
||||||
|
LIBS := $(WHOLE_START) $(LIB_CORE) $(WHOLE_END) -lm
|
||||||
|
|
||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
LIBS += -lctrud
|
LIBS += -lctrud
|
||||||
|
@ -230,7 +240,7 @@ all: $(TARGET)
|
||||||
|
|
||||||
$(TARGET): $(TARGET_3DSX) $(TARGET_3DS) $(TARGET_CIA)
|
$(TARGET): $(TARGET_3DSX) $(TARGET_3DS) $(TARGET_CIA)
|
||||||
$(TARGET).3dsx: $(TARGET).elf
|
$(TARGET).3dsx: $(TARGET).elf
|
||||||
$(TARGET).elf: $(OBJ) libretro_ctr.a
|
$(TARGET).elf: $(OBJ) $(LIB_CORE_FULL)
|
||||||
|
|
||||||
PREFIX := $(DEVKITARM)/bin/arm-none-eabi-
|
PREFIX := $(DEVKITARM)/bin/arm-none-eabi-
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue