Added CI/CD pipeline with artifacts, now after each commit you can download binary file for tests.

This commit is contained in:
Konstantin 2021-07-31 12:04:45 +03:00
parent d6ef58d8a6
commit 1fd0e98208
2 changed files with 35 additions and 0 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 tree
- 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,12 @@ 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)
nodebug = ${NODEBUG}
ifdef nodebug
LIBS := -lstdc++fs -lSDL2_ttf -lSDL2_image -lpng -ljpeg `sdl2-config --libs` -lfreetype -lwebp -lz -lbz2 -lconfig -lnx -lmupdf -lmupdf-third #-lmupdf_core -lmupdf_thirdparty
else
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 := -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
endif
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing # list of directories containing libraries, this must be the top level containing