-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9031b55
commit 65fb99a
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
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,47 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux | ||
|
||
echo "Checkout polkadot-sdk" | ||
pushd .. | ||
if [ ! -d "polkadot-sdk" ]; then | ||
git clone https://github.com/parity-tech/polkadot-sdk.git | ||
cd snowbridge && ln -sf ../polkadot-sdk polkadot-sdk | ||
fi | ||
pushd polkadot-sdk | ||
git fetch && git checkout snowbridge | ||
popd | ||
popd | ||
|
||
echo "Checkout lodestar" | ||
pushd .. | ||
if [ ! -d "lodestar" ]; then | ||
git clone https://github.com/ChainSafe/lodestar | ||
fi | ||
if [ ! -L "snowbridge/lodestar" ]; then | ||
(cd snowbridge && ln -sf ../lodestar lodestar) | ||
fi | ||
pushd lodestar | ||
git fetch && git checkout $LODESTAR_VERSION | ||
popd | ||
popd | ||
|
||
echo "Setting up git hooks" | ||
git config --local core.hooksPath hooks/ | ||
|
||
echo "Installing Rust nightly toolchain" | ||
rustup default stable | ||
rustup target add wasm32-unknown-unknown | ||
rustup install --profile minimal $RUST_NIGHTLY_VERSION | ||
rustup component add --toolchain $RUST_NIGHTLY_VERSION rustfmt | ||
rustup show | ||
|
||
echo "Installing sszgen" | ||
go install github.com/ferranbt/fastssz/[email protected] | ||
|
||
echo "Installing cargo fuzz" | ||
cargo install cargo-fuzz | ||
|
||
echo "Installing web packages" | ||
(cd web && pnpm install) | ||
|