mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Add DOS/DJGPP workflow
This commit is contained in:
parent
fa9f39c0ab
commit
bebe803658
35
.github/workflows/DOS-DJGPP.yml
vendored
Normal file
35
.github/workflows/DOS-DJGPP.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
name: CI DOS/DJGPP
|
||||||
|
|
||||||
|
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-djgpp-build-container:latest
|
||||||
|
options: --user root
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Compile RA
|
||||||
|
run: |
|
||||||
|
make -f Makefile.dos -j$(getconf _NPROCESSORS_ONLN) clean
|
||||||
|
make -f Makefile.dos -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-DOS-dummy-${{ steps.slug.outputs.sha8 }}
|
||||||
|
path: |
|
||||||
|
retrodos.exe
|
11
Makefile.dos
11
Makefile.dos
@ -9,6 +9,7 @@ TOPDIR ?= $(CURDIR)
|
|||||||
|
|
||||||
DEBUG ?= 0
|
DEBUG ?= 0
|
||||||
WHOLE_ARCHIVE_LINK = 0
|
WHOLE_ARCHIVE_LINK = 0
|
||||||
|
HAVE_STATIC_DUMMY ?= 0
|
||||||
GRIFFIN_BUILD = 0
|
GRIFFIN_BUILD = 0
|
||||||
|
|
||||||
OBJ :=
|
OBJ :=
|
||||||
@ -183,6 +184,14 @@ ifneq ($(ROMFS),)
|
|||||||
export NROFLAGS += --romfsdir=$(CURDIR)/$(ROMFS)
|
export NROFLAGS += --romfsdir=$(CURDIR)/$(ROMFS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
LIB_CORE :=
|
||||||
|
|
||||||
|
ifeq ($(HAVE_STATIC_DUMMY),1)
|
||||||
|
DEFINES += -DHAVE_STATIC_DUMMY
|
||||||
|
else
|
||||||
|
LIB_CORE += -lretro_dos
|
||||||
|
endif
|
||||||
|
|
||||||
DEPENDS_TMP := $(OFILES:.o=.d)
|
DEPENDS_TMP := $(OFILES:.o=.d)
|
||||||
DEPENDS := $(filter-out libretro_libnx.a,$(DEPENDS_TMP))
|
DEPENDS := $(filter-out libretro_libnx.a,$(DEPENDS_TMP))
|
||||||
|
|
||||||
@ -194,7 +203,7 @@ DEPENDS := $(filter-out libretro_libnx.a,$(DEPENDS_TMP))
|
|||||||
all : $(OUTPUT)
|
all : $(OUTPUT)
|
||||||
|
|
||||||
$(OUTPUT): $(OBJ)
|
$(OUTPUT): $(OBJ)
|
||||||
$(CXX) -o $@ $(LDFLAGS) $(LIBDIRS) $(OBJ) $(PLATEXTRA) -L. -lretro_dos $(LIBS)
|
$(CXX) -o $@ $(LDFLAGS) $(LIBDIRS) $(OBJ) $(PLATEXTRA) -L. $(LIB_CORE) $(LIBS)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -c -o $@ $(CFLAGS) $<
|
$(CC) -c -o $@ $(CFLAGS) $<
|
||||||
|
Loading…
x
Reference in New Issue
Block a user