Skip to content

Commit af878ef

Browse files
pixi: bound the parallel build on Linux (#1252)
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 <noreply@anthropic.com>
1 parent 181ac51 commit af878ef

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎pixi.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ test = "PATH=\"$PATH;$PIXI_PROJECT_ROOT/build/Release\" ctest --test-dir build -
1111

1212
[target.linux-64.tasks]
1313
test = "./build/tests/behaviortree_cpp_test"
14+
# With Makefiles, --parallel without a number runs an unbounded make -j that
15+
# exhausts the memory of the CI runners; bound it to the number of cores.
16+
build = "mkdir -p build && cd build && cmake ../ -DCMAKE_BUILD_TYPE=Release && cmake --build . --parallel $(nproc) --config Release"
1417

1518
[tasks]
1619
build = "mkdir -p build && cd build && cmake ../ -DCMAKE_BUILD_TYPE=Release && cmake --build . --parallel --config Release"

0 commit comments

Comments
 (0)