Skip to content

Commit 9e73e30

Browse files
committed
fix(CI): set the correct rust host triple to install (should be x86_64-pc-windows-msvc)
1 parent a1543f1 commit 9e73e30

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

setup.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
set -euo pipefail
33
IFS=$'\n\t'
44

5-
echo "$ clang --print-target-triple"
6-
clang --print-target-triple
7-
85
# Get number of CPU cores
96
CPUS=$(getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || echo 1)
107

@@ -30,7 +27,7 @@ else
3027
fi
3128
# Install rust compiler
3229
echo "Installing rust compiler"
33-
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.85
30+
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y --default-host "$(clang --print-target-triple)" --default-toolchain 1.85
3431
CARGO_BIN="$HOME/.cargo/bin/cargo" # also works for Windows. On Windows this equals to %USERPROFILE%\.cargo\bin\cargo
3532
$CARGO_BIN install cbindgen
3633
# Setup Poetry

0 commit comments

Comments
 (0)