LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
CI: default to line-table debuginfo, four jobs and four test threads
radialmonstere99ce5a57887
diff --git a/README.md b/README.mdindex 13ed80d7e..cda75c282 100644--- a/README.md+++ b/README.md@@ -334,6 +334,12 @@ cargo run --release -p lightcraft-cli -- render photo.jpg -o out.jpg --set lightcargo xtask ci # fmt, clippy, tests, layering, wasm checks```+CI defaults to line-table debug information, four build jobs and four test+threads to avoid many full-debuginfo linkers exhausting RAM. CPU speed and GPU+coverage are unchanged. Explicit `CARGO_PROFILE_DEV_DEBUG`, `CARGO_BUILD_JOBS`+and `RUST_TEST_THREADS` settings override these defaults (use two jobs/threads+on a 4 GB machine). Ordinary development commands keep their existing settings.+**Chinese and Japanese text** need the shared font repo, an optional build input (official releases always include it):```shdiff --git a/xtask/src/main.rs b/xtask/src/main.rsindex 3cfcd3b8a..23ac47a2a 100644--- a/xtask/src/main.rs+++ b/xtask/src/main.rs@@ -81,6 +81,16 @@ pub fn root() -> PathBuf {pub fn cargo() -> Command {let mut c = Command::new(std::env::var("CARGO").unwrap_or_else(|_| "cargo".into()));c.current_dir(root());+ // Full Windows debuginfo plus one linker per CPU can exhaust RAM before any+ // tests run. Scope these overridable defaults to CI, including parity/WASM+ // subprocesses, without changing ordinary developer builds or GPU coverage.+ if std::env::args().nth(1).as_deref() == Some("ci") {+ for (key, value) in [("CARGO_PROFILE_DEV_DEBUG", "line-tables-only"), ("CARGO_BUILD_JOBS", "4"), ("RUST_TEST_THREADS", "4")] {+ if std::env::var_os(key).is_none() {+ c.env(key, value);+ }+ }+ }c}