From bb842a7d7c255f2800072bf28ce7d6ada732cc7e Mon Sep 17 00:00:00 2001 From: "Gilad S." Date: Sun, 27 Sep 2026 01:13:18 +0200 Subject: [PATCH] build: reduce CI memory usage --- src/bindings/utils/compileLLamaCpp.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bindings/utils/compileLLamaCpp.ts b/src/bindings/utils/compileLLamaCpp.ts index d84fd8f9..1030c408 100644 --- a/src/bindings/utils/compileLLamaCpp.ts +++ b/src/bindings/utils/compileLLamaCpp.ts @@ -726,6 +726,8 @@ function getParallelBuildThreadsToUse(platform: BinaryPlatform, gpu?: BuildGpu, if (ciMode && platform === "win" && gpu === "cuda" && cpuCount === 4) return 3; // workaround for `compiler is out of heap space` error on GitHub Actions on Windows when building with CUDA + else if (ciMode && platform === "win" && gpu === "vulkan" && cpuCount === 4) + return 3; // workaround for `compiler is out of heap space` error on GitHub Actions on Windows when building with CUDA if (cpuCount <= 4) return cpuCount;