|
19 | 19 | EVNODE_VERSION: "v1.0.0-beta.2.0.20250908090838-0584153217ed" |
20 | 20 | IGNITE_VERSION: "v29.3.1" |
21 | 21 | IGNITE_EVOLVE_APP_VERSION: "main" |
| 22 | + GAIAD_VERSION: "v24.0.0" |
22 | 23 |
|
23 | 24 | steps: |
24 | 25 | - uses: actions/checkout@v5 |
|
52 | 53 | echo "DA_PID=$!" >> $GITHUB_ENV |
53 | 54 | sleep 3 |
54 | 55 |
|
| 56 | + - name: Download Gaia Binary |
| 57 | + run: | |
| 58 | + echo "Downloading gaiad ${GAIAD_VERSION} for Linux amd64" |
| 59 | + wget -q https://github.com/cosmos/gaia/releases/download/${GAIAD_VERSION}/gaiad-${GAIAD_VERSION}-linux-amd64 -O gaiad |
| 60 | + chmod +x gaiad |
| 61 | + sudo mv gaiad /usr/local/bin/gaiad |
| 62 | +
|
| 63 | + - name: Init and Start Gaia |
| 64 | + env: |
| 65 | + GAIA_CHAIN_ID: localnet-1 |
| 66 | + run: | |
| 67 | + echo "Initializing Gaia (${GAIA_CHAIN_ID}) and starting in background" |
| 68 | + gaiad init gaia-local --chain-id ${GAIA_CHAIN_ID} |
| 69 | + # Use a deterministic validator mnemonic as in parent repo |
| 70 | + MNEMONIC="abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art" |
| 71 | + echo "$MNEMONIC" | gaiad keys add validator --keyring-backend test --recover > /dev/null 2>&1 |
| 72 | + gaiad genesis add-genesis-account validator 10000000000000000stake --keyring-backend test |
| 73 | + gaiad genesis gentx validator 1000000000stake --chain-id ${GAIA_CHAIN_ID} --keyring-backend test |
| 74 | + gaiad genesis collect-gentxs |
| 75 | + # Configure app (API + gas) and consensus for quicker blocks |
| 76 | + sed -i 's/^minimum-gas-prices = ".*"/minimum-gas-prices = "0stake"/' ~/.gaia/config/app.toml || true |
| 77 | + # Enable API server and bind to 0.0.0.0:1317 |
| 78 | + sed -i 's/^enable = false/enable = true/' ~/.gaia/config/app.toml || true |
| 79 | + sed -i 's#^address = "tcp://localhost:1317"#address = "tcp://0.0.0.0:1317"#' ~/.gaia/config/app.toml || true |
| 80 | + sed -i 's/^timeout_commit = ".*"/timeout_commit = "1s"/' ~/.gaia/config/config.toml || true |
| 81 | + sed -i 's/^timeout_propose = ".*"/timeout_propose = "1s"/' ~/.gaia/config/config.toml || true |
| 82 | + # Start Gaia using standard ports (like gm/integration-tests) |
| 83 | + gaiad start \ |
| 84 | + --p2p.laddr tcp://0.0.0.0:26656 \ |
| 85 | + --rpc.laddr tcp://0.0.0.0:26657 \ |
| 86 | + --grpc.address 0.0.0.0:9090 \ |
| 87 | + --log_format=json > gaia.log 2>&1 & |
| 88 | + echo "GAIA_PID=$!" >> $GITHUB_ENV |
| 89 | + echo "Waiting a few seconds for Gaia to come up" |
| 90 | + sleep 5 |
| 91 | +
|
55 | 92 | - name: Replace Modules and Prepare Chain |
56 | 93 | run: | |
57 | 94 | echo "Replacing modules (ev-node @ ${EVNODE_VERSION}, ev-abci -> local)" |
|
74 | 111 | echo "Stopping local DA (PID ${DA_PID})" |
75 | 112 | kill -9 $DA_PID || true |
76 | 113 | fi |
| 114 | + if [[ -n "${GAIA_PID}" ]]; then |
| 115 | + echo "Stopping Gaia (PID ${GAIA_PID})" |
| 116 | + kill -9 $GAIA_PID || true |
| 117 | + fi |
0 commit comments