From b19db1688adf45391cac5616f71b34c9fb016b04 Mon Sep 17 00:00:00 2001 From: Davide Faconti Date: Sat, 24 Oct 2026 15:50:35 +0200 Subject: [PATCH] pixi: bound the parallel build on Linux cmake --build --parallel without a number makes the Makefile generator run an unbounded make -j, which exhausts the memory of the GitHub runners: the ubuntu pixi job dies with 'The runner has received a shutdown signal' and no compiler error. Override the build task on linux-64 to use $(nproc); the Visual Studio generator on Windows is already bounded to the cores. Co-Authored-By: Claude Opus 5.5 --- pixi.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pixi.toml b/pixi.toml index 2c8691cb7..8b15e728f 100644 --- a/pixi.toml +++ b/pixi.toml @@ -11,6 +11,9 @@ test = "PATH=\"$PATH;$PIXI_PROJECT_ROOT/build/Release\" ctest --test-dir build - [target.linux-64.tasks] test = "./build/tests/behaviortree_cpp_test" +# With Makefiles, --parallel without a number runs an unbounded make -j that +# exhausts the memory of the CI runners; bound it to the number of cores. +build = "mkdir -p build && cd build && cmake ../ -DCMAKE_BUILD_TYPE=Release && cmake --build . --parallel $(nproc) --config Release" [tasks] build = "mkdir -p build && cd build && cmake ../ -DCMAKE_BUILD_TYPE=Release && cmake --build . --parallel --config Release"