Skip to content

Commit afbb5d6

Browse files
joskeclaude
andcommitted
Override host triple after rustup install
rustup-init bakes in x86_64-pc-windows-gnu on MSYS2 ARM. Install first, then switch default host and toolchain to aarch64-pc-windows-gnullvm. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3c377f0 commit afbb5d6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/test-windows-arm.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ jobs:
4242
export CARGO_HOME="$(pwd)/.cargo"
4343
export RUSTUP_HOME="$(pwd)/.rustup"
4444
rm -rf "$RUSTUP_HOME"
45-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-host aarch64-pc-windows-gnullvm --default-toolchain stable
45+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
4646
export PATH="$(pwd)/.cargo/bin:$PATH"
47+
rustup set default-host aarch64-pc-windows-gnullvm
48+
rustup toolchain install stable-aarch64-pc-windows-gnullvm
49+
rustup default stable-aarch64-pc-windows-gnullvm
4750
- name: Configure cargo linker
4851
shell: msys2 {0}
4952
run: |

0 commit comments

Comments
 (0)