feat: add Linux arm64 build to release script
Builds aarch64-unknown-linux-musl via cross alongside the existing x86_64 Linux and macOS arm64 targets. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+5
-1
@@ -81,9 +81,12 @@ echo "==> Releasing ${TAG}"
|
|||||||
echo "==> Building macOS (native)..."
|
echo "==> Building macOS (native)..."
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
echo "==> Building Linux (static musl via cross)..."
|
echo "==> Building Linux amd64 (static musl via cross)..."
|
||||||
cross build --release --target x86_64-unknown-linux-musl
|
cross build --release --target x86_64-unknown-linux-musl
|
||||||
|
|
||||||
|
echo "==> Building Linux arm64 (static musl via cross)..."
|
||||||
|
cross build --release --target aarch64-unknown-linux-musl
|
||||||
|
|
||||||
# ── Package ────────────────────────────────────────────────────
|
# ── Package ────────────────────────────────────────────────────
|
||||||
DIST="target/dist"
|
DIST="target/dist"
|
||||||
rm -rf "$DIST"
|
rm -rf "$DIST"
|
||||||
@@ -91,6 +94,7 @@ mkdir -p "$DIST"
|
|||||||
|
|
||||||
cp "target/release/${BINARY_NAME}" "${DIST}/${BINARY_NAME}-macos-arm64"
|
cp "target/release/${BINARY_NAME}" "${DIST}/${BINARY_NAME}-macos-arm64"
|
||||||
cp "target/x86_64-unknown-linux-musl/release/${BINARY_NAME}" "${DIST}/${BINARY_NAME}-linux-amd64"
|
cp "target/x86_64-unknown-linux-musl/release/${BINARY_NAME}" "${DIST}/${BINARY_NAME}-linux-amd64"
|
||||||
|
cp "target/aarch64-unknown-linux-musl/release/${BINARY_NAME}" "${DIST}/${BINARY_NAME}-linux-arm64"
|
||||||
chmod +x "${DIST}"/*
|
chmod +x "${DIST}"/*
|
||||||
|
|
||||||
echo "==> Binaries:"
|
echo "==> Binaries:"
|
||||||
|
|||||||
Reference in New Issue
Block a user