From 796208722ef0dc2acf455a3d795995a0e99667c1 Mon Sep 17 00:00:00 2001 From: ITotalJustice <47043333+ITotalJustice@users.noreply.github.com> Date: Mon, 21 Jul 2025 10:30:11 +0100 Subject: [PATCH] workflow: only push new workflow release on push, set specific cmake version, use nproc to use all cores when building. --- .github/workflows/build_presets.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_presets.yml b/.github/workflows/build_presets.yml index 31f9452..fa5d5fc 100644 --- a/.github/workflows/build_presets.yml +++ b/.github/workflows/build_presets.yml @@ -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