From ecb2567757d06f701c7eb91089dc56106bec63c5 Mon Sep 17 00:00:00 2001 From: ITotalJustice <47043333+ITotalJustice@users.noreply.github.com> Date: Tue, 17 Dec 2024 20:05:33 +0000 Subject: [PATCH] add workflow --- .github/workflows/build_presets.yml | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build_presets.yml diff --git a/.github/workflows/build_presets.yml b/.github/workflows/build_presets.yml new file mode 100644 index 0000000..e2542d6 --- /dev/null +++ b/.github/workflows/build_presets.yml @@ -0,0 +1,35 @@ +name: build + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + preset: [Release, RelWithDebInfo, MinSizeRel, Debug] + runs-on: ${{ matrix.os }} + container: devkitpro/devkita64:latest + + steps: + - uses: actions/checkout@v3 + + # fetch latest cmake + - uses: lukka/get-cmake@latest + + - name: Configure CMake + run: | + cmake --preset ${{ matrix.preset }} + + - name: Build + run: cmake --build --preset ${{ matrix.preset }} --parallel 4 + + - uses: actions/upload-artifact@master + with: + name: sphaira-${{ matrix.preset }} + path: build/${{ matrix.preset }}/sphaira.nro