mirror of
https://github.com/ITotalJustice/sphaira.git
synced 2025-11-02 01:16:03 +01:00
33 lines
770 B
YAML
33 lines
770 B
YAML
name: build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
preset: [Release]
|
|
runs-on: ${{ matrix.os }}
|
|
container: devkitpro/devkita64:latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
# fetch latest cmake
|
|
- uses: lukka/get-cmake@v3.31.6
|
|
|
|
- name: Configure CMake
|
|
run: cmake --preset ${{ matrix.preset }}
|
|
|
|
- name: Build
|
|
run: cmake --build --preset ${{ matrix.preset }} --parallel $(nproc)
|
|
|
|
- name: Deploy
|
|
if: ${{ github.event_name != 'pull_request' && github.event.action != 'unassigned' }}
|
|
uses: actions/upload-artifact@master
|
|
with:
|
|
name: sphaira-${{ matrix.preset }}
|
|
path: build/${{ matrix.preset }}/sphaira.nro
|