| 1 |
Build.dependencies({"git", "make", "rustc", "cargo", "rustup"}) |
| 2 |
|
| 3 |
Step.start("crate") |
| 4 |
Step.push("build") |
| 5 |
Build.run({"cargo", "build"}) |
| 6 |
-- and now that some code is conditional on target arch, at least try to build |
| 7 |
-- for other architectures even if we might not be able to run on them. |
| 8 |
Build.run({"rustup", "target", "add", "wasm32-wasi"}) |
| 9 |
Build.run({"cargo", "build", "--no-default-features", "--target", "wasm32-wasi"}) |
| 10 |
|
| 11 |
Step.advance("test") |
| 12 |
-- TODO: set `-D warnings` here and below... |
| 13 |
Build.run({"cargo", "test"}, {name="test default features"}) |
| 14 |
|
| 15 |
-- `cargo test` ends up running doc tests. great! but yaxpeax-arch's docs reference items in std only. |
| 16 |
-- so for other feature combinations, skip doc tests. do this by passing `--tests` explicitly, |
| 17 |
-- which disables the automagic "run everything" settings. |
| 18 |
Build.run({"cargo", "test", "--no-default-features", "--tests"}, {name="test no features"}) |
| 19 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "std"}, {name="test std only"}) |
| 20 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "colors"}, {name="test feature combinations"}) |
| 21 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "use-serde"}, {name="test feature combinations"}) |
| 22 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "address-parse"}, {name="test feature combinations"}) |
| 23 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "alloc"}, {name="test feature combinations"}) |
| 24 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "color-new"}, {name="test feature combinations"}) |
| 25 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "std,colors"}, {name="test feature combinations"}) |
| 26 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "std,use-serde"}, {name="test feature combinations"}) |
| 27 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "std,address-parse"}, {name="test feature combinations"}) |
| 28 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "std,address-parse,alloc"}, {name="test feature combinations"}) |
| 29 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "use-serde,colors,address-parse"}, {name="test feature combinations"}) |
| 30 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "use-serde,colors,address-parse,alloc"}, {name="test feature combinations"}) |
| 31 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "std,colors,address-parse"}, {name="test feature combinations"}) |
| 32 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "std,colors,address-parse,alloc"}, {name="test feature combinations"}) |
| 33 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "std,use-serde,colors"}, {name="test feature combinations"}) |
| 34 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "std,use-serde,colors,alloc"}, {name="test feature combinations"}) |
| 35 |
Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "color-new,alloc"}, {name="test feature combinations"}) |