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