File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments