cargo clean only if the compiler version is downgraded
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
parent
b9b7d84466
commit
da271a6f22
@ -98,6 +98,9 @@ downgrade_compiler_if_needed() {
|
|||||||
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
|
||||||
|
cd $PROJECT_FOLDER
|
||||||
|
echo "[+] clean build cache..."
|
||||||
|
cargo clean
|
||||||
else
|
else
|
||||||
echo "[+] rustc compiler version is compatible"
|
echo "[+] rustc compiler version is compatible"
|
||||||
fi
|
fi
|
||||||
@ -226,8 +229,6 @@ if [[ $HARD_RESET = true ]]; then
|
|||||||
sudo rm -rf "$BASE_PATH/chains/casper_staging_testnet"
|
sudo rm -rf "$BASE_PATH/chains/casper_staging_testnet"
|
||||||
|
|
||||||
cd $PROJECT_FOLDER
|
cd $PROJECT_FOLDER
|
||||||
echo "[+] clean build cache..."
|
|
||||||
cargo clean
|
|
||||||
echo "[+] starting build in 3 seconds..."
|
echo "[+] starting build in 3 seconds..."
|
||||||
sleep 3
|
sleep 3
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
Loading…
Reference in New Issue
Block a user