File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 5555 run : |
5656 wget -q "https://github.com/paritytech/zombienet/releases/download/v1.3.133/zombienet-linux-x64"
5757 chmod +x zombienet-linux-x64
58+ echo "ZOMBIENET_BINARY=$GITHUB_WORKSPACE/zombienet-linux-x64" >> $GITHUB_ENV
5859
5960 - name : Verify Docker is working
6061 run : |
Original file line number Diff line number Diff line change @@ -88,7 +88,28 @@ bulletin-solo-zombienet-start:
8888 mkdir -p {{ PID_DIR }}
8989
9090 echo " ⚡ Starting Bulletin chain with zombienet..."
91- POLKADOT_BULLETIN_BINARY_PATH=../ target/ release/ polkadot-bulletin-chain ../ $(ls ../ zombienet-*-*) -p native spawn ../ zombienet/ bulletin-polkadot-local.toml > / tmp/ zombienet.log 2 >&1 &
91+
92+ # Find zombienet binary (use env var if set, otherwise search)
93+ if [ -n " $ZOMBIENET_BINARY" ]; then
94+ ZOMBIENET_BIN=" $ZOMBIENET_BINARY"
95+ else
96+ ZOMBIENET_BIN=$(ls ../ zombienet-*-* 2 >/ dev/ null | head -n 1 )
97+ fi
98+
99+ if [ -z " $ZOMBIENET_BIN" ] || [ ! -f " $ZOMBIENET_BIN" ]; then
100+ echo " ❌ Error: Zombienet binary not found"
101+ echo " Tried: $ZOMBIENET_BIN"
102+ echo " Set ZOMBIENET_BINARY environment variable or ensure zombienet-* exists in parent directory"
103+ exit 1
104+ fi
105+
106+ echo " Using zombienet: $ZOMBIENET_BIN"
107+
108+ # Get absolute paths for bulletin binary and config
109+ BULLETIN_BINARY=$(cd .. && pwd)/ target/ release/ polkadot-bulletin-chain
110+ ZOMBIENET_CONFIG=$(cd .. && pwd)/ zombienet/ bulletin-polkadot-local.toml
111+
112+ POLKADOT_BULLETIN_BINARY_PATH=$BULLETIN_BINARY $ZOMBIENET_BIN -p native spawn $ZOMBIENET_CONFIG > / tmp/ zombienet.log 2 >&1 &
92113 ZOMBIENET_PID=$!
93114 echo $ZOMBIENET_PID > {{ PID_DIR }} / zombienet.pid
94115 echo " Zombienet PID: $ZOMBIENET_PID"
You can’t perform that action at this time.
0 commit comments