WIP: GitHub workflow #93
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |