diff --git a/.forge/ci.toml b/.forge/ci.toml index d08af2f..81c28d0 100644 --- a/.forge/ci.toml +++ b/.forge/ci.toml @@ -19,7 +19,9 @@ tags = ["v*"] image = "docker.io/library/rust:1" # Build parallelism comes from the runner (CARGO_BUILD_JOBS follows its CPU limit). Drops debuginfo. # CARGO_HOME in the workspace puts the downloaded crates in the cache, so a run downloads only new ones. -env = { CARGO_PROFILE_DEV_DEBUG = "0", CARGO_PROFILE_TEST_DEBUG = "0", CARGO_INCREMENTAL = "0", CARGO_HOME = "/workspace/.cargo-home" } +# That places turso_core's source inside this repo, and its build.rs then watches our .git/HEAD, which +# is new in every job, so it would rebuild on every run. With SOURCE_DATE_EPOCH set it skips git. +env = { CARGO_PROFILE_DEV_DEBUG = "0", CARGO_PROFILE_TEST_DEBUG = "0", CARGO_INCREMENTAL = "0", CARGO_HOME = "/workspace/.cargo-home", SOURCE_DATE_EPOCH = "0" } # main.rs holds the whole forge-web crate, so `cargo test` compiles it twice: the `forge` binary # (the e2e tests run it) and its unit-test harness, ~3.4 GB of rustc each. Built in parallel they # hit the runner's box cap and got OOM-killed now and then. The e2e build makes the binary first, @@ -35,7 +37,7 @@ timeout_minutes = 120 image = "docker.io/library/rust:1" needs = ["test"] # Build parallelism comes from the runner (CARGO_BUILD_JOBS follows its CPU limit). -env = { CARGO_INCREMENTAL = "0", CARGO_HOME = "/workspace/.cargo-home" } +env = { CARGO_INCREMENTAL = "0", CARGO_HOME = "/workspace/.cargo-home", SOURCE_DATE_EPOCH = "0" } run = """ cargo build --profile dist -p forge-web -p forge-runner ARCH=$(uname -m)