diff --git a/README.md b/README.md index 345c32c1..69e3998e 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ cargo run --release -p texturecraft-cli -- new builtin:crate crate.tcraft --samp cargo run --release -p texturecraft-cli -- render crate.tcraft crate.png --samples 256 # path traced cargo run --release -p texturecraft-cli -- export crate.tcraft textures # headless export cd apps/texturecraft-web && trunk serve # web build -cargo xtask ci # fmt, clippy, tests, layering, wasm +cargo xtask ci # fmt, clippy, tests, layering, wasm (not on Windows) ``` You need Rust 1.95 or newer. The app opens with no project (**File ▸ Open sample project** loads a baked one, and **File ▸ Close** returns to the empty state). diff --git a/docs/releasing.md b/docs/releasing.md index 2658af20..65c2a8bb 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -173,7 +173,7 @@ artwork and keep `ATTRIBUTION.md` in step. See `assets/app-icon/README.md`. ## Local checks -- `cargo xtask ci`: fmt, clippy, tests, `cargo xtask layers`, `cargo xtask wasm`. +- `cargo xtask ci`: fmt, clippy, tests, `cargo xtask layers`, `cargo xtask wasm` (not run by `ci` on Windows; the other hosts cover it). - `bash packaging/linux/apprun-test.sh` and `bash packaging/freebsd/package.sh --dry-run` run anywhere with bash. - `packaging/macos/package.sh --arch aarch64` on a Mac builds an ad-hoc signed DMG. diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 2ff6178a..e1ce8ee1 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -155,13 +155,20 @@ fn cmd_ci() -> Result<(), String> { }; type Step = (&'static str, Box Result<(), String>>); // Reject invalid dependency layering before spending time compiling and running the workspace. - let steps: Vec = vec![ + let mut steps: Vec = vec![ ("fmt", Box::new(cargo_step(&["fmt", "--all", "--", "--check"]))), ("layers", Box::new(cmd_layers)), ("clippy", Box::new(cargo_step(&["clippy", "--workspace", "--all-targets", "--", "-D", "warnings"]))), ("test", Box::new(cargo_step(&["test", "--workspace"]))), - ("wasm", Box::new(cmd_wasm)), ]; + // The check compiles for wasm32 and gives the same answer on any host, so the non-Windows legs + // cover it and the slower Windows leg skips it. A skipped step is not in the list, so the + // summary never reports it as ok. + if cfg!(windows) { + eprintln!("ci: wasm check not run on Windows (the other hosts cover it)"); + } else { + steps.push(("wasm", Box::new(cmd_wasm))); + } for (i, (name, step)) in steps.iter().enumerate() { eprintln!("\n=== ci: {name} ==="); if let Err(e) = step() {