Skip to content

Commit

Permalink
add prepare-ec2.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Jan 9, 2024
1 parent ef86ee8 commit 6b2ac4d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Binary file removed contracts/sh/.prepare-ec2.sh.swp
Binary file not shown.
15 changes: 11 additions & 4 deletions contracts/sh/prepare-ec2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@
#

sudo apt update
sudo apt-get install cmake build-essential libgmp-dev libsodium-dev nlohmann-json3-dev nasm g++ curl
sudo apt-get install -y cmake build-essential libgmp-dev libsodium-dev nlohmann-json3-dev nasm g++ curl

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
. $HOME/.cargo/env

echo installing zkutil...
cargo install zkutil --version 0.3.2

curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
echo installing nvm...
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
Expand All @@ -26,6 +30,9 @@ npm install -g yarn

git clone https://github.com/clrfund/monorepo.git

./monorepo/.github/scripts/download-batch64-params.sh

cd monorepo
git checkout feat/aws-scripts
yarn
cd contract && yarn build
cd contracts && yarn build

0 comments on commit 6b2ac4d

Please sign in to comment.