diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 745ad074..8d9c2261 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -140,15 +140,19 @@ jobs: run: | PLATFORM_CONF="" if [ ${{ matrix.confs.test }} ]; 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