From 3637bc962eb213b733061530cbe15bf44c4b6277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 22 Oct 2026 14:07:15 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20ci:=20build=20waits=20for=20test?= =?UTF-8?q?=20instead=20of=20running=20beside=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forge/ci.toml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 = """