From 4843527422cdbe6c32b53c4f62ea5ef91e1b6bee Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Mon, 20 May 2024 03:44:43 +0300 Subject: [PATCH] =?UTF-8?q?*=20limit=20parallel=20jobs=20to=202=20for=20ea?= =?UTF-8?q?ch=20os,=20hopefully=20would=20fix=20the=20random=20cancellatio?= =?UTF-8?q?n=20*=20use=20clang=20instead=20of=20gcc=20because=20of=20this?= =?UTF-8?q?=20error=20`g++:=20error:=20unrecognized=20command-line=20optio?= =?UTF-8?q?n=20=E2=80=98-Wundefined-internal=E2=80=99`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/emu-build-all-linux.yml | 5 +++-- .github/workflows/emu-build-all-win.yml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/emu-build-all-linux.yml b/.github/workflows/emu-build-all-linux.yml index 73753144..9412816c 100644 --- a/.github/workflows/emu-build-all-linux.yml +++ b/.github/workflows/emu-build-all-linux.yml @@ -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) diff --git a/.github/workflows/emu-build-all-win.yml b/.github/workflows/emu-build-all-win.yml index d7e8b401..099c63b3 100644 --- a/.github/workflows/emu-build-all-win.yml +++ b/.github/workflows/emu-build-all-win.yml @@ -28,6 +28,7 @@ jobs: if: ${{ !cancelled() }} strategy: + max-parallel: 2 matrix: prj: [ 'GameOverlayRenderer', 'GenerateInterfaces', 'SteamClient', 'SteamEmu', ] arch: [ 'x64', 'Win32', ]