File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ # Cargo configuration for cross-compilation
2+
3+ [target .aarch64-unknown-linux-gnu ]
4+ linker = " aarch64-linux-gnu-gcc"
5+
Original file line number Diff line number Diff line change 5050 sudo apt-get install -y gcc-aarch64-linux-gnu
5151 fi
5252
53+ - name : Install Rust targets
54+ run : |
55+ rustup target add ${{ matrix.target }}
56+
5357 - name : Install cross-compilation dependencies (macOS)
5458 if : matrix.os == 'macos-latest'
5559 run : |
Original file line number Diff line number Diff line change @@ -65,5 +65,12 @@ clean: ## Clean build artifacts
6565install-tools : # # Install development tools (cargo-tarpaulin, cargo-watch)
6666 $(CARGO ) install cargo-tarpaulin cargo-watch
6767
68+ install-targets : # # Install Rust targets for cross-compilation
69+ @echo " Installing Rust targets for cross-compilation..."
70+ rustup target add x86_64-unknown-linux-musl
71+ rustup target add aarch64-unknown-linux-gnu
72+ @echo " ✅ Targets installed. Note: For cross-compilation from macOS, consider using 'cross' tool."
73+ @echo " Install with: cargo install cross --git https://github.com/cross-rs/cross"
74+
6875ci : fmt-check lint test # # Run all CI checks (format, lint, test)
6976
You can’t perform that action at this time.
0 commit comments