Skip to content

Commit

Permalink
Fix zombienet polkadot build (#95)
Browse files Browse the repository at this point in the history
* Update polkadot repository dir name

* Update polkadot branch name pattern

* Copy all relay chain binaries to zombienet folder

* Add quotes to avoid re-splitting

* Remove array expansion
  • Loading branch information
khssnv authored Nov 8, 2023
1 parent 7566210 commit f378691
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions zombienet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ build_polkadot(){
mkdir -p bin
pushd /tmp
git clone https://github.com/paritytech/polkadot-sdk.git
pushd polkadot
git checkout $POLKADOT_V
pushd polkadot-sdk
git checkout release-polkadot-$POLKADOT_V
echo "building polkadot executable..."
cargo build --release --features fast-runtime
cp target/release/polkadot $CWD/bin
cp target/release/polkadot "$CWD/bin"
cp target/release/polkadot-execute-worker "$CWD/bin"
cp target/release/polkadot-prepare-worker "$CWD/bin"
popd
popd
}
Expand All @@ -36,7 +38,7 @@ zombienet_init() {
curl -LO https://github.com/paritytech/zombienet/releases/download/$ZOMBIENET_V/$ZOMBIENET_BIN
chmod +x $ZOMBIENET_BIN
fi
if [ ! -f bin/polkadot ]; then
if [ ! -f bin/polkadot ] || [ ! -f bin/polkadot-execute-worker ] || [ ! -f bin/polkadot-prepare-worker ]; then
build_polkadot
fi
}
Expand Down

0 comments on commit f378691

Please sign in to comment.