diff --git a/.forge/ci.toml b/.forge/ci.toml index 4addd32..95d1abc 100644 --- a/.forge/ci.toml +++ b/.forge/ci.toml @@ -1,11 +1,9 @@ # CI for forge itself. Format: docs/ci.md, parser: crates/forge-ci/src/config.rs. # # The workflow has no branch condition, so the build job also runs for pull requests. -# test and build have no `needs` between them, so they run in parallel when runner capacity allows -# (two runners, or one runner with concurrency = 2). Memory is not declared: when two jobs together -# near the runner's memory budget, the runner pauses the younger one and parks it in swap until the -# other finishes (docs/ci.md, Memory). An earlier run with concurrency 4 hit a host-wide OOM and -# the kernel killed rustc mid-build. +# build has `needs = ["test"]`, so it starts only after test succeeds. Only one job uses the +# runner's memory at a time, so no memory is declared. An earlier run with concurrency 4 hit a +# host-wide OOM and the kernel killed rustc mid-build. # The build job's artifacts are still only used # once the whole run is green: a tag push matching "v*" publishes a release with the build job's # binaries and SHA256SUMS, and self-update deploys dist/forge, only when every job in the run, @@ -29,6 +27,7 @@ timeout_minutes = 120 [jobs.build] image = "docker.io/library/rust:1" +needs = ["test"] # 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 = """