Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Fix zombienet polkadot build #95

Merged
merged 5 commits into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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