2021-07-31 09:04:45 +00:00
|
|
|
name: eBookReaderSwitch CI pipeline
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: devkitpro/devkita64:latest
|
|
|
|
|
|
|
|
steps:
|
2021-07-31 11:13:11 +00:00
|
|
|
- run: apt update && apt -y install libfreetype6-dev
|
2021-07-31 09:04:45 +00:00
|
|
|
- uses: actions/checkout@v1
|
2021-08-07 16:06:12 +00:00
|
|
|
- name: Get repo submoduels
|
2021-07-31 09:04:45 +00:00
|
|
|
run: |
|
|
|
|
git submodule update --init --recursive
|
2021-08-07 16:06:12 +00:00
|
|
|
- name: Cache MuPDF
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: mupdf/build
|
|
|
|
key: ${{ runner.os }}-mupdf-${{ hashFiles('**/mupdf/PKGBUILD') }}
|
2021-07-31 09:04:45 +00:00
|
|
|
|
|
|
|
- name: Building eBookReaderSwitch
|
|
|
|
run: |
|
|
|
|
export NODEBUG=true
|
|
|
|
make mupdf && make -j$(nproc)
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: eBookReaderSwitch
|
2021-08-07 16:06:12 +00:00
|
|
|
path: eBookReaderSwitch.nro
|