From b45ae4b6d699cae590f5bed684e7eb37c31333c5 Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Fri, 24 Jul 2026 00:04:57 +0700 Subject: [PATCH] build: update development and cross-compilation tools --- Cross.toml | 3 +++ check.sh | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Cross.toml create mode 100755 check.sh 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