-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathinstall.sh
38 lines (29 loc) · 1.41 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# Exit immediately if a command exits with a non-zero status.
set -e
# Helper function to print an error message and exit.
error_exit() {
echo "Error: $1 failed with exit code $?. Exiting."
exit 1
}
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y || error_exit "Installing Rust"
source $HOME/.cargo/env
# Install the nightly toolchain
rustup toolchain install nightly --profile minimal -c rust-src || error_exit "Installing nightly toolchain"
# Set the default toolchain to nightly
rustup default nightly || error_exit "Setting default toolchain to nightly"
# Install the Succinct toolchain
curl -L https://sp1.succinct.xyz | bash || error_exit "Installing Succinct toolchain"
export PATH="$PATH:$HOME/.sp1/bin"
sp1up || error_exit "Updating Succinct toolchain"
cargo prove --version || error_exit "Checking cargo prove version"
# # Install the jolt toolchain
# cargo install --git https://github.com/a16z/jolt --force --bins jolt || error_exit "Installing jolt toolchain"
# jolt install-toolchain || error_exit "Installing jolt runtime"
# Install the Risc0 toolchain
curl -L https://risczero.com/install | bash || error_exit "Installing Risc Zero toolchain"
export PATH="$PATH:$HOME/.risc0/bin"
rzup install || error_exit "Updating Risc Zero toolchain"
cargo risczero --version || error_exit "Checking cargo risczero version"
echo "All installations completed successfully."