eBookReaderSwitch/.github/workflows/c-cpp.yml

32 lines
785 B
YAML

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