Skip to content

Commit 32f9373

Browse files
authored
ci: add sui key import script (#884)
* ci: add sui key import script * ci: add multisig installation * ci: add stellar key * ci: disable ipv6
1 parent a30d28b commit 32f9373

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.github/deployer/init_script.sh

+18-3
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ set -x
126126

127127
cd /tmp
128128
# Install go
129+
sysctl -p
129130
wget -q https://go.dev/dl/go$${GO_VERS}.linux-amd64.tar.gz
130131
tar xf go$${GO_VERS}.linux-amd64.tar.gz -C /usr/local
131132

@@ -235,15 +236,29 @@ alias make='sudo /opt/deployer/bin/deploy.sh'" >> $${DEPLOYR_HOME}/.bashrc
235236

236237
chmod +x /opt/deployer/root/keyutils/add_secret.sh
237238
echo "## Aliases
238-
alias add-secrets='/opt/deployer/root/keyutils/add_secret.sh'" >> /root/.bashrc
239+
alias add-secrets='/opt/deployer/root/keyutils/add_secret.sh'
240+
alias add-stellar-key='/opt/deployer/root/keyutils/add_stellar_key.sh'" >> /root/.bashrc
239241

240242
## Install solana
241243
source "/root/.cargo/env"
242244

243245
export PATH=$${PATH}:/root/.cargo/bin
246+
sh -c "$(curl -sSfL https://release.solana.com/v1.18.18/install)"
244247

245248
sudo apt-get install -y pkg-config build-essential libudev-dev libssl-dev
246249
/root/.cargo/bin/cargo install --git https://github.com/coral-xyz/anchor avm --locked --force || true
247-
avm install 0.30.1 ||
248-
chmod 400 /tmp/user_data_log.out || true
250+
avm install 0.30.1 || true
251+
252+
echo "export PATH=$${PATH}:/root/.local/share/solana/install/releases/1.18.18/solana-release/bin" >> /root/.bashrc
253+
249254

255+
256+
## Install multisig
257+
cargo install --git https://github.com/icon-project/cw-plus.git --branch feat/test-multisig cwmultisig
258+
259+
## Install Stellar
260+
wget https://github.com/stellar/stellar-cli/releases/download/v21.4.1/stellar-cli-21.4.1-x86_64-unknown-linux-gnu.tar.gz
261+
tar -xvzf stellar-cli-21.4.1-x86_64-unknown-linux-gnu.tar.gz
262+
mv stellar /usr/local/bin/stellar
263+
264+
chmod 400 /tmp/user_data_log.out || true

.github/deployer/sui_import.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
ARCHWAY_KEY=$(archwayd keys export ibc_wallet --unsafe --unarmored-hex --keyring-backend test)
4+
SUI_KEY=$(sui keytool convert $ARCHWAY_KEY --json | grep suiprivkey | awk -F\" '{print $4}')
5+
rm -rf /root/.sui/sui_config/*
6+
sui keytool import --alias sui_wallet_testnet $SUI_KEY ed25519 >/dev/null && echo "SUCCESS" || echo "FAILED"

0 commit comments

Comments
 (0)