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) <noreply@anthropic.com>
This commit is contained in:
parent
9e31a6985c
commit
f33e27734b
1 changed files with 4 additions and 2 deletions
6
.github/workflows/build-native.yml
vendored
6
.github/workflows/build-native.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue