Skip to content

Commit a8b10db

Browse files
chore(ci): install Sui CLI from prebuilt binary and run tests for Lazer Sui
1 parent 45e51b4 commit a8b10db

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/ci-lazer-sui-contract.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,19 @@ jobs:
1717
working-directory: lazer/contracts/sui/
1818
steps:
1919
- uses: actions/checkout@v4
20-
- name: Download Sui CLI binary
20+
- name: Install Sui CLI (binary)
2121
run: |
2222
set -euo pipefail
23-
SUI_VERSION="1.30.0"
24-
ARCHIVE="sui-ubuntu-x86_64-${SUI_VERSION}.tgz"
25-
URL="https://github.com/MystenLabs/sui/releases/download/cli-v${SUI_VERSION}/${ARCHIVE}"
26-
curl -L -o "$ARCHIVE" "$URL"
27-
tar -xzf "$ARCHIVE"
28-
sudo mv sui /usr/local/bin/sui
23+
CHANNEL="testnet"
24+
SUI_VERSION="v1.54.0"
25+
ARCHIVE="sui-${CHANNEL}-${SUI_VERSION}-ubuntu-x86_64.tgz"
26+
URL="https://github.com/MystenLabs/sui/releases/download/${CHANNEL}-${SUI_VERSION}/${ARCHIVE}"
27+
echo "Downloading ${URL}"
28+
curl -fsSL -o "${ARCHIVE}" "${URL}"
29+
tar -xzf "${ARCHIVE}"
30+
BIN_PATH="$(find . -maxdepth 2 -type f -name sui | head -n 1)"
31+
chmod +x "${BIN_PATH}"
32+
sudo mv "${BIN_PATH}" /usr/local/bin/sui
2933
sui --version
3034
- name: Run tests
3135
run: sui move test

0 commit comments

Comments
 (0)