From 9538c6a28756b0ad4cff689c2dd435929ea0ec8c Mon Sep 17 00:00:00 2001 From: SirLynix Date: Tue, 26 Aug 2025 18:20:54 +0200 Subject: [PATCH] CI: Reduce MinGW 32bits jobs count due to memory constraints --- .github/workflows/build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dffae4bc..c679116f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -140,15 +140,19 @@ jobs: run: | PLATFORM_CONF="" if [ "${{ matrix.confs.test }}" == "true" ]; then - PLATFORM_CONF="$PLATFORM_CONF --examples=y --tests=y" >> $GITHUB_ENV + PLATFORM_CONF="$PLATFORM_CONF --examples=y --tests=y" fi # MinGW has some issues with unitybuild if [ "${{ matrix.confs.plat }}" != "mingw" ]; then - PLATFORM_CONF="$PLATFORM_CONF --unitybuild=y" >> $GITHUB_ENV + PLATFORM_CONF="$PLATFORM_CONF --unitybuild=y" + fi + # MinGW 32bits fails because it allocates too much memory for the system + if [ "${{ matrix.confs.plat }}" == "mingw" ] && [ "${{ matrix.confs.msystem }}" == "mingw32" ]; then + echo "BUILD_CONF=-j1" >> $GITHUB_ENV fi # Android and Emscripten don't support filesystem watcher if [ "${{ matrix.confs.plat }}" == "android" ] || [ "${{ matrix.confs.plat }}" == "wasm" ]; then - PLATFORM_CONF="$PLATFORM_CONF --fs_watcher=n" >> $GITHUB_ENV + PLATFORM_CONF="$PLATFORM_CONF --fs_watcher=n" fi echo "ADDITIONAL_CONF=${{ env.ADDITIONAL_CONF }} $PLATFORM_CONF" >> $GITHUB_ENV FILENAME="nzsl_${{ matrix.confs.plat }}_${{ matrix.confs.arch }}_${{ matrix.kind }}" @@ -176,7 +180,7 @@ jobs: # Build library and tests - name: Build library - run: xmake + run: xmake ${{ env.BUILD_CONF }} # Run unit tests - name: Run unit tests