From 4c4575ab407fdc173ff60ac5ca01948331124684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 17 Oct 2026 10:30:26 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20ci:=20limit=20build=20parallelis?= =?UTF-8?q?m=20and=20debuginfo=20to=20fit=20the=20runner's=20memory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forge/ci.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.forge/ci.toml b/.forge/ci.toml index 151e164..b86aeab 100644 --- a/.forge/ci.toml +++ b/.forge/ci.toml @@ -9,6 +9,8 @@ manual = true [jobs.test] image = "docker.io/library/rust:1" +# Runner has a few GB RAM and 2 CPUs: cap rustc parallelism and drop debuginfo to avoid OOM kills. +env = { CARGO_BUILD_JOBS = "2", CARGO_PROFILE_DEV_DEBUG = "0", CARGO_PROFILE_TEST_DEBUG = "0", CARGO_INCREMENTAL = "0" } run = """ cargo test --workspace """ @@ -17,6 +19,8 @@ timeout_minutes = 60 [jobs.build] image = "docker.io/library/rust:1" needs = ["test"] +# Runner has a few GB RAM and 2 CPUs: cap rustc parallelism to avoid OOM kills. +env = { CARGO_BUILD_JOBS = "2", CARGO_INCREMENTAL = "0" } run = """ cargo build --profile dist -p forge-web mkdir -p dist