set -euo pipefail
which cargo-nextest &>/dev/null || brew install cargo-nextest
set -x
main() {
cargo build --all-targets
meta/cargo-docker --pull -- cargo build --release --color=always --all-targets
cargo nextest run --run-ignored=all
meta/cargo-docker --arch arm64 -- bash -cex 'rustup component add clippy rustfmt && cargo test --release --no-fail-fast --color=always -- --include-ignored'
meta/cargo-docker --arch amd64 -- bash -cex 'rustup component add clippy rustfmt && cargo test --release --no-fail-fast --color=always -- --include-ignored'
echo >&2 "✅ All tests passed"
}
main $@