* limit parallel jobs to 2 for each os, hopefully would fix the random cancellation

* use clang instead of gcc because of this error `g++: error: unrecognized command-line option ‘-Wundefined-internal’`
This commit is contained in:
otavepto 2024-05-20 03:44:43 +03:00
parent 372824aee3
commit 4843527422
2 changed files with 4 additions and 2 deletions

View File

@ -29,6 +29,7 @@ jobs:
if: ${{ !cancelled() }}
strategy:
max-parallel: 2
matrix:
## notice how on linux everything is lowercase, `cd GBE_Build`, then: `make help`
cfg: [ 'debug', 'release', 'experimentaldebug', 'experimentalrelease', ]
@ -90,9 +91,9 @@ jobs:
working-directory: ${{ github.workspace }}/GBE_Build
run: |
echo "dry run..."
make -n -j 2 config=${{ matrix.cfg }}_${{ matrix.arch }} ${{ matrix.prj }}
CC=clang CXX=clang++ make -n -j 2 config=${{ matrix.cfg }}_${{ matrix.arch }} ${{ matrix.prj }}
echo "actual run..."
make -j 2 config=${{ matrix.cfg }}_${{ matrix.arch }} ${{ matrix.prj }}
CC=clang CXX=clang++ make -j 2 config=${{ matrix.cfg }}_${{ matrix.arch }} ${{ matrix.prj }}
### upload artifact/package to github Actions (for targets)
- name: Upload build package (for targets)

View File

@ -28,6 +28,7 @@ jobs:
if: ${{ !cancelled() }}
strategy:
max-parallel: 2
matrix:
prj: [ 'GameOverlayRenderer', 'GenerateInterfaces', 'SteamClient', 'SteamEmu', ]
arch: [ 'x64', 'Win32', ]