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:
11
.github/workflows/build_presets.yml
vendored
11
.github/workflows/build_presets.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user