From 670a51d9cd2c743b8816d22ff1e2ecc1cd7f0e74 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 11:00:58 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20ci:=20build=20one=20crate=20at?= =?UTF-8?q?=20a=20time=20to=20stay=20under=20the=20runner=20memory=20cap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forge/ci.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.forge/ci.toml b/.forge/ci.toml index b86aeab..22152cc 100644 --- a/.forge/ci.toml +++ b/.forge/ci.toml @@ -9,22 +9,22 @@ 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" } +# Runner has a few GB RAM and 2 CPUs: rustc runs one crate at a time because a single forge-web compile needs several GB. Also drops debuginfo. +env = { CARGO_BUILD_JOBS = "1", CARGO_PROFILE_DEV_DEBUG = "0", CARGO_PROFILE_TEST_DEBUG = "0", CARGO_INCREMENTAL = "0" } run = """ cargo test --workspace """ -timeout_minutes = 60 +timeout_minutes = 120 [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" } +# Runner has a few GB RAM and 2 CPUs: rustc runs one crate at a time because a single forge-web compile needs several GB. +env = { CARGO_BUILD_JOBS = "1", CARGO_INCREMENTAL = "0" } run = """ cargo build --profile dist -p forge-web mkdir -p dist cp target/dist/forge dist/forge """ artifacts = ["dist/forge"] -timeout_minutes = 60 +timeout_minutes = 120