Skip to content

WIP: GitHub workflow #93

WIP: GitHub workflow

WIP: GitHub workflow #93

Workflow file for this run

name: Build Moonlight-Switch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: docker://devkitpro/devkita64:latest
steps:
- name: Check out repository
uses: actions/checkout@v1
with:
submodules: recursive
- name: Remove useless fonts
run: rm -rf ./resources/font
- name: Run cmake
run: cmake -B build/switch -DPLATFORM_SWITCH=ON
- name: Dirty second cmake run
if: ${{ !cancelled() }}
run: cmake -B build/switch -DPLATFORM_SWITCH=ON
- name: Run build
run: make -C build/switch Moonlight.nro -j8
- name: Upload Moonlight-Switch.nro
uses: actions/upload-artifact@master
with:
name: Moonlight-Switch
path: build/switch/Moonlight.nro
- name: Upload Moonlight-Switch.elf
uses: actions/upload-artifact@master
with:
name: Debug.elf
path: build/switch/Moonlight.elf