Skip to content

ci: use curl to download artifact #4

ci: use curl to download artifact

ci: use curl to download artifact #4

name: SUI Move Build and Test
on:
pull_request:
branches:
- "main"
push:
branches:
- "**"
jobs:
build:
name: sui move build and test
runs-on: ubuntu-latest
env:
sui_repo: "https://api.github.com/repos/MystenLabs/sui/releases/latest"
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install sui
run: |
latest_tag=$(curl -sSL ${sui_repo} | jq -r '.tag_name')
ubuntu_artifact=$(sui-mainnet-${latest_tag#mainnet-}-ubuntu-x86_64.tgz)
browser_download_url=$(curl -sSL ${sui_repo} | jq -r '.assets[] | select(.name == "${ubuntu_artifact}") | .browser_download_url')
curl -LO $browser_download_url
sudo tar -xzvf ${ubuntu_artifact} sui -C /usr/local/bin
- name: build and test
run: bash ./scripts/optimize-move.sh