mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-14 16:53:35 -07:00
scripts: update: also update rust-toolchain
This commit is contained in:
+12
-1
@@ -1,7 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
TOOLCHAIN_FILE="$SCRIPT_DIR/../rust-toolchain.toml"
|
||||
|
||||
rustup update
|
||||
|
||||
# Update rust-toolchain.toml with current stable version
|
||||
RUST_VERSION=$(rustup run stable rustc --version | awk '{print $2}')
|
||||
echo "[toolchain]" > "$TOOLCHAIN_FILE"
|
||||
echo "channel = \"$RUST_VERSION\"" >> "$TOOLCHAIN_FILE"
|
||||
echo "Updated rust-toolchain.toml to $RUST_VERSION"
|
||||
|
||||
cargo clean
|
||||
rustup update
|
||||
cargo upgrade --incompatible
|
||||
cargo update
|
||||
cargo build --package brk
|
||||
|
||||
Reference in New Issue
Block a user