Skip to content

Commit 3031d80

Browse files
committed
feat(gha): tweaks for cross builds. NOTICKET.
1 parent 3b135c6 commit 3031d80

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.cargo/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Cargo configuration for cross-compilation
2+
3+
[target.aarch64-unknown-linux-gnu]
4+
linker = "aarch64-linux-gnu-gcc"
5+

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ jobs:
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: |

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,12 @@ clean: ## Clean build artifacts
6565
install-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+
6875
ci: fmt-check lint test ## Run all CI checks (format, lint, test)
6976

0 commit comments

Comments
 (0)