diff --git a/Cross.toml b/Cross.toml new file mode 100644 index 0000000..e0a7a7d --- /dev/null +++ b/Cross.toml @@ -0,0 +1,3 @@ +[target.x86_64-unknown-freebsd] +image.name = "ghcr.io/cross-rs/x86_64-unknown-freebsd:local" +image.toolchain = ["linux/arm64=aarch64-unknown-linux-gnu"] diff --git a/check.sh b/check.sh new file mode 100755 index 0000000..323ab97 --- /dev/null +++ b/check.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +set -euo pipefail + +targets=( + aarch64-apple-darwin + x86_64-unknown-linux-gnu + x86_64-unknown-linux-musl + aarch64-unknown-linux-musl + x86_64-unknown-freebsd +) + +for target in "${targets[@]}"; do + echo + echo "==> Checking ${target}" + cargo check \ + --workspace \ + --all-targets \ + --target "${target}" +done