From f33e27734bfe6ccafdbc0197b40b578055f454a2 Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Tue, 24 Mar 2026 16:17:01 -0600 Subject: [PATCH] fix(ci): separate cross-compilation target from toolchain install dtolnay/rust-toolchain resolves Blacksmith runner hostnames as Rust targets on ARM64 runners. Split target addition into explicit rustup command for cross-compilation builds. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/build-native.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-native.yml b/.github/workflows/build-native.yml index 148ee749b..47378b86e 100644 --- a/.github/workflows/build-native.yml +++ b/.github/workflows/build-native.yml @@ -46,8 +46,10 @@ jobs: - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - with: - targets: ${{ matrix.target }} + + - name: Add Rust cross-compilation target + if: matrix.cross + run: rustup target add ${{ matrix.target }} - name: Cache Rust build artifacts uses: Swatinem/rust-cache@v2