Merge pull request #10 from Disinterpreter/action

Added CI/CD pipeline with artifacts
This commit is contained in:
SeanOMik 2021-07-31 14:27:29 -04:00 committed by GitHub
commit 3c9c1ae192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 1 deletions

30
.github/workflows/c-cpp.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: eBookReaderSwitch CI pipeline
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
container: devkitpro/devkita64:latest
steps:
- run: apt update && apt -y install libfreetype6-dev
- uses: actions/checkout@v1
- name: Update repo.
run: |
git submodule update --init --recursive
- name: Building eBookReaderSwitch
run: |
export NODEBUG=true
make mupdf && make -j$(nproc)
- uses: actions/upload-artifact@master
with:
name: eBookReaderSwitch
path: eBookReaderSwitch.nro

View File

@ -68,7 +68,13 @@ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions #-DDEBUG=1 -DEXPERIMENTAL=1
ASFLAGS := -g $(ARCH) ASFLAGS := -g $(ARCH)
LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
LIBS := -lstdc++fs -lSDL2_ttf -lSDL2_image -lpng -ljpeg `sdl2-config --libs` -lfreetype -lwebp -lz -lbz2 -ltwili -lconfig -lnx -lmupdf -lmupdf-third #-lmupdf_core -lmupdf_thirdparty LIBS_REAL = stdc++fs SDL2_ttf SDL2_image png jpeg freetype webp z bz2 config nx mupdf mupdf-third
## LIBS_REAL += mupdf_core mupdf_thirdparty
ifeq (,$(NODEBUG))
LIBS_REAL += twili
endif
LIBS = $(addprefix -l,$(LIBS_REAL)) $(shell sdl2-config --libs)
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing # list of directories containing libraries, this must be the top level containing