diff --git a/README.md b/README.md index 297a9f1..503409e 100644 --- a/README.md +++ b/README.md @@ -204,7 +204,9 @@ purpose; Idunn discovers no authority implicitly. Idunn targets Linux and does not compile on Windows (`drivers.rs` uses `std::os::unix` unconditionally). A local `cargo check` on a Windows -workstation proves nothing. Test and build where it runs, in the same image +workstation proves nothing. `scripts/verify.sh` is the verification command: +the library tests plus a Windows-target check of `idunn-host`. Run it on Linux +with the `x86_64-pc-windows-gnu` std installed. Test and build where it runs, in the same image Odin uses, with the working tree shipped to the host's build root: ```bash diff --git a/scripts/verify.sh b/scripts/verify.sh new file mode 100755 index 0000000..c73a99b --- /dev/null +++ b/scripts/verify.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# The one verification command. Run it on Linux with the Windows GNU std installed +# (the Eureka verify image has both); a Windows workstation proves nothing. +# --lib because the tests under tests/ assume the host layout. +set -euo pipefail +cargo test --locked --lib +cargo check --locked --target x86_64-pc-windows-gnu --bin idunn-host