Add WiiU workflow
This commit is contained in:
parent
03971308a3
commit
cd7a6afd20
|
@ -0,0 +1,39 @@
|
||||||
|
name: CI WiiU
|
||||||
|
|
||||||
|
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-wiiu:latest
|
||||||
|
options: --user root
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Compile Salamander
|
||||||
|
run: |
|
||||||
|
make -f Makefile.wiiu -j$(getconf _NPROCESSORS_ONLN) SALAMANDER_BUILD=1 clean
|
||||||
|
make -f Makefile.wiiu -j$(getconf _NPROCESSORS_ONLN) SALAMANDER_BUILD=1
|
||||||
|
|
||||||
|
- name: Compile RA
|
||||||
|
run: |
|
||||||
|
make -f Makefile.wiiu -j$(getconf _NPROCESSORS_ONLN) clean
|
||||||
|
make -f Makefile.wiiu -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@v3
|
||||||
|
with:
|
||||||
|
name: RA-WiiU-dummy-${{ steps.slug.outputs.sha8 }}
|
||||||
|
path: |
|
||||||
|
retroarch.rpx
|
|
@ -5,6 +5,7 @@ BUILD_RPX = 1
|
||||||
DEBUG = 0
|
DEBUG = 0
|
||||||
GRIFFIN_BUILD = 0
|
GRIFFIN_BUILD = 0
|
||||||
SALAMANDER_BUILD = 0
|
SALAMANDER_BUILD = 0
|
||||||
|
HAVE_STATIC_DUMMY ?= 0
|
||||||
WHOLE_ARCHIVE_LINK = 0
|
WHOLE_ARCHIVE_LINK = 0
|
||||||
WIIU_HID = 1
|
WIIU_HID = 1
|
||||||
HAVE_HID = 1
|
HAVE_HID = 1
|
||||||
|
@ -224,7 +225,16 @@ ifeq ($(WHOLE_ARCHIVE_LINK), 1)
|
||||||
WHOLE_END := -Wl,--no-whole-archive
|
WHOLE_END := -Wl,--no-whole-archive
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LIBS := $(WHOLE_START) -lretro_wiiu $(WHOLE_END) -lm
|
LIB_CORE :=
|
||||||
|
|
||||||
|
ifeq ($(HAVE_STATIC_DUMMY),1)
|
||||||
|
DEFINES += -DHAVE_STATIC_DUMMY
|
||||||
|
else
|
||||||
|
LIB_CORE += -lretro_wiiu
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
LIBS := $(WHOLE_START) $(LIB_CORE) $(WHOLE_END) -lm
|
||||||
|
|
||||||
# Use portlibs zlib if deps/ isn't being used
|
# Use portlibs zlib if deps/ isn't being used
|
||||||
ifeq ($(HAVE_ZLIB),1)
|
ifeq ($(HAVE_ZLIB),1)
|
||||||
|
|
Loading…
Reference in New Issue