From f3786918716ee101edf504f01774ef80f9a26ab0 Mon Sep 17 00:00:00 2001 From: "Alisher A. Khassanov" Date: Wed, 8 Nov 2023 15:05:55 +0600 Subject: [PATCH] Fix zombienet polkadot build (#95) * 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 --- zombienet.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/zombienet.sh b/zombienet.sh index b545c42..e2682c1 100755 --- a/zombienet.sh +++ b/zombienet.sh @@ -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 } @@ -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 }