-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(scripts): set
CC
and CXX
to clang
while building the node
- Loading branch information
Showing
6 changed files
with
86 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env bash | ||
set -eE | ||
|
||
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P) | ||
root_dir=$(cd "${script_dir}/../" && pwd -P) | ||
|
||
source "${script_dir}/common.sh" | ||
|
||
if ! command -v cargo 2>&1 >/dev/null | ||
then | ||
cat << EOF | ||
ERROR: \`cargo\` could not be found. You need to install the Rust compiler first: | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||
And add its environment variables: | ||
source ~/.cargo/env | ||
EOF | ||
exit 1 | ||
fi | ||
|
||
set_clang_env 19 | ||
cargo install --path ./cli --locked | ||
|
||
cat << EOF | ||
Node installed successfully. Run the following to configure it: | ||
tycho init --systemd --global-config https://testnet.tychoprotocol.com/global-config.json \\ | ||
--validator --stake 500000 | ||
Where | ||
--global-config: file path or URL to the network global config | ||
--stake: stake value per round | ||
EOF |