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