From fdd4fc128395cd7d34f72d5aa71e78ca2a7fbff7 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 24 Jan 2024 17:28:59 +0100 Subject: [PATCH] CI macos: limit number of threads for GLFW make Using `cmake --build . --parallel` actually doesn't limit the number of processes because it just passes the number (here none) to make, resulting in `make -j`. This is a possible explanations of macOS runner freezes, as eg. here: (last relevant message in log is `[100%] Built target joysticks`). --- .github/scripts/macOS/prepare.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/macOS/prepare.sh b/.github/scripts/macOS/prepare.sh index 62d98efdd..d68c6379b 100755 --- a/.github/scripts/macOS/prepare.sh +++ b/.github/scripts/macOS/prepare.sh @@ -80,7 +80,7 @@ install_glfw() {( git fetch --depth 500 https://github.com/MartinPulec/glfw.git git merge FETCH_HEAD cmake -DBUILD_SHARED_LIBS=ON . - cmake --build . --parallel + cmake --build . -j "$(sysctl -n hw.ncpu)" sudo cmake --install . )}