Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/actions/setup-sui/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ inputs:
description: Sui CLI version to install (e.g., mainnet-v1.57.2)
required: false
default: mainnet-v1.57.2
github-token:
description: GitHub token to use for authentication
required: true

runs:
using: composite
Expand All @@ -20,10 +23,13 @@ runs:
- if: ${{ steps.cache.outputs.cache-hit != 'true' }}
name: Install suiup and Sui CLI
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
GH_TOKEN: ${{ inputs.github-token }}
run: |
curl -sSfL https://raw.githubusercontent.com/MystenLabs/suiup/main/install.sh | sh
"$HOME/.local/bin/suiup" install sui@${{ inputs.version }} --yes
cargo install --git https://github.com/Mystenlabs/suiup.git --locked
"$HOME/.cargo/bin/suiup" install sui@${{ inputs.version }} --yes

- name: Export Sui CLI to PATH
shell: bash
run: echo "PATH=$HOME/.suiup/bin:$HOME/.local/bin:$PATH" >> $GITHUB_ENV
run: echo "PATH=$HOME/.suiup/bin:$HOME/.local/bin:$HOME/.cargo/bin:$PATH" >> $GITHUB_ENV
1 change: 1 addition & 0 deletions .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ jobs:
if: ${{ matrix.type.should-run == 'true' && matrix.type.setup-sui == 'true' }}
uses: ./.github/actions/setup-sui
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version: mainnet-1.57.2

- name: Setup wasmd
Expand Down
Loading