From 5b3733de942795cc715d6c51e904844cd06288b9 Mon Sep 17 00:00:00 2001 From: Stepanov Igor Date: Sun, 5 Oct 2025 22:39:07 +0300 Subject: [PATCH] use only 4 threads for build --- .github/workflows/cmake.yml | 4 ++-- .github/workflows/macos.yml | 2 +- .github/workflows/windows-clang.yml | 2 +- .github/workflows/windows.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index ba88d2221..973249e6f 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -53,7 +53,7 @@ jobs: git clone https://github.com/libsdl-org/SDL.git cd SDL cmake -G "Ninja Multi-Config" -B.build . - cmake --build .build --config Release -j + cmake --build .build --config Release -j 4 sudo cmake --install .build --config Release cd .. @@ -68,7 +68,7 @@ jobs: - name: Build # Build your program with the given configuration run: | - cmake --build ${{github.workspace}}/build --config ${{inputs.build_type}} -j + cmake --build ${{github.workspace}}/build --config ${{inputs.build_type}} -j 4 mv ${{github.workspace}}/build/VoxelEngine VoxelEngine - name: Run tests if: ${{ inputs.run_tests }} diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 06f0fa2e5..8cfc20084 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -23,7 +23,7 @@ jobs: run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DVOXELENGINE_BUILD_TESTS=ON -DVOXELENGINE_BUILD_APPDIR=1 - name: Build - run: cmake --build build -t install -j + run: cmake --build build -t install -j 4 - name: Make fix_dylibs.sh executable run: chmod +x dev/fix_dylibs.sh diff --git a/.github/workflows/windows-clang.yml b/.github/workflows/windows-clang.yml index f9bf72a2b..3b860ed8c 100644 --- a/.github/workflows/windows-clang.yml +++ b/.github/workflows/windows-clang.yml @@ -48,7 +48,7 @@ jobs: mkdir build cd build cmake -G "MinGW Makefiles" -DVCPKG_TARGET_TRIPLET=x64-mingw-static -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake .. - cmake --build . --config Release -j + cmake --build . --config Release -j 4 - name: Package for Windows run: | mkdir packaged diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 896aa7951..03cdffcf4 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -32,7 +32,7 @@ jobs: VCPKG_ROOT: ${{ github.workspace }}/vcpkg run: | cmake --preset default-vs-msvc-windows - cmake --build --preset default-vs-msvc-windows --config Release -j + cmake --build --preset default-vs-msvc-windows --config Release -j 4 - name: Run tests run: ctest --preset default-vs-msvc-windows - name: Run engine tests