increase stable compiler version to match the ghost-eye dependencies

Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
Uncle Stinky 2025-09-01 19:23:20 +03:00
parent 25fcfed586
commit 71eb90a5fb
Signed by: st1nky
GPG Key ID: 016064BD97603B40

View File

@ -81,20 +81,18 @@ extract_seed() {
} }
downgrade_compiler_if_needed() { downgrade_compiler_if_needed() {
# TODO: uncomment later echo "[+] fetching the latest ghost-node source code"
# echo "[+] fetching the latest ghost-node source code" git switch main
# git switch main git pull origin main
# git pull origin main
# 1.83.0 works fine, tested with: # 1.86.0 works fine, tested with:
# ...
# 1.87.0 throws errors during compilation # 1.87.0 throws errors during compilation
# 1.88.0 throws errors during compilation # 1.88.0 throws errors during compilation
LATEST_TESTED_VERSION=83 LATEST_TESTED_VERSION=86
cargo_version=$(cargo --version | cut -d'.' -f2) cargo_version=$(cargo --version | cut -d'.' -f2)
if [ "$cargo_version" -gt "$LATEST_TESTED_VERSION" ]; then if [ "$cargo_version" -gt "$LATEST_TESTED_VERSION" ]; then
echo "[+] downgrading rustc compiler version to 1.83.0" echo "[+] downgrading rustc compiler version to 1.86.0"
rustup default 1.83.0 rustup default 1.86.0
toolchain_name=$(rustup show | grep default | head -n 1 | cut -d' ' -f1) toolchain_name=$(rustup show | grep default | head -n 1 | cut -d' ' -f1)
rustup target add wasm32-unknown-unknown --toolchain $toolchain_name rustup target add wasm32-unknown-unknown --toolchain $toolchain_name
rustup component add rust-src --toolchain $toolchain_name rustup component add rust-src --toolchain $toolchain_name