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