From c1812fed2d8b17f8d76c3739eca962899a7d3f05 Mon Sep 17 00:00:00 2001 From: Manolis Liolios Date: Wed, 16 Oct 2024 14:33:21 +0300 Subject: [PATCH] Install sui from homebrew --- .github/workflows/sdk_test.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/sdk_test.yml b/.github/workflows/sdk_test.yml index 1507fed2..0b046651 100644 --- a/.github/workflows/sdk_test.yml +++ b/.github/workflows/sdk_test.yml @@ -24,6 +24,14 @@ jobs: with: fetch-depth: 1 + - name: Install Homebrew + run: | + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH + + - name: Install Sui using Homebrew + run: brew install sui + - uses: actions/setup-node@v4 with: node-version: 20 @@ -36,15 +44,6 @@ jobs: run: | pnpm install - - name: Download & Extract latest SUI binary - run: | - url=$(curl -s https://api.github.com/repos/mystenlabs/sui/releases/latest | jq -r '.assets[] | select(.name | contains("ubuntu")) | .browser_download_url') - filename="sui-x86-64.tgz" - wget $url -O $filename - tar -xzf $filename - ls - ./sui -V - - name: Prepare local network & run SDK tests env: IS_CI_JOB: true