workflow: only push new workflow release on push, set specific cmake version, use nproc to use all cores when building.

This commit is contained in:
ITotalJustice
2025-07-21 10:30:11 +01:00
parent 85dbc54641
commit 796208722e

View File

@@ -16,16 +16,17 @@ jobs:
- uses: actions/checkout@v3
# fetch latest cmake
- uses: lukka/get-cmake@latest
- uses: lukka/get-cmake@v3.31.6
- name: Configure CMake
run: |
cmake --preset ${{ matrix.preset }} -DUSE_VFS_GC=0
run: cmake --preset ${{ matrix.preset }}
- name: Build
run: cmake --build --preset ${{ matrix.preset }} --parallel 4
run: cmake --build --preset ${{ matrix.preset }} --parallel $(nproc)
- uses: actions/upload-artifact@master
- 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