fix(ci): add Rust target for all platforms, not just cross-compilation

macOS x64 builds on ARM64 runners also need the target added explicitly.
Use rustup target add for all matrix entries to avoid Blacksmith's
target rewriting in dtolnay/rust-toolchain.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson 2026-03-24 16:22:36 -06:00
parent b80cebfd4a
commit ea0b1e4444

View file

@ -47,8 +47,7 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Add Rust cross-compilation target
if: matrix.cross
- name: Add Rust compilation target
run: rustup target add ${{ matrix.target }}
- name: Cache Rust build artifacts