name: build description: Build gateway for different targets (macOS, Linux aarch64, Raspberry Pi). Use when building the Rust application for local development or cross-compilation.
/build
Build gateway for different targets.
Local (macOS)
cargo build --release
Cross-compile for Linux aarch64 (Netto server)
Option 1: cargo-zigbuild (Recommended)
Install once:
cargo install cargo-zigbuild
brew install zig
Build:
cargo zigbuild --release --target aarch64-unknown-linux-gnu
Binary at: target/aarch64-unknown-linux-gnu/release/gateway
Option 2: Remote build
Build directly on the target server:
rsync -avz --exclude target --exclude .git ./ avero@HOST:~/gateway/
ssh avero@HOST "source ~/.cargo/env && cd ~/gateway && cargo build --release"
Targets
| Target | Architecture | OS |
|---|---|---|
| default | arm64 | macOS |
| aarch64-unknown-linux-gnu | aarch64 | Linux |
| x86_64-unknown-linux-gnu | x86_64 | Linux |
Test before deploy
cargo test
cargo clippy
chat Comments (0)
Sign in to join the discussion and leave a comment.
Skill Details
GitHub Stars
0
GitHub Forks
0
Created
Jan 2026
Last Updated
5 months ago
tools
tools cicd
Related Skills
Build your own?
Join 12,000+ developers contributing to the Claude ecosystem.
No comments yet. Be the first to share your thoughts!