Skip to content

Commit

Permalink
ci: update Walrus setup to Testnet (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlegner authored Oct 17, 2024
1 parent d329954 commit 0f23be3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/actions/set-up-walrus/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
SUI_KEYSTORE:
description: The content of the Sui keystore file
required: true
WALRUS_CONFIG:
description: The content of the Walrus configuration file
required: true

runs:
using: "composite"
Expand Down Expand Up @@ -54,11 +57,12 @@ runs:
- name: Install and configure Walrus
run: |
# The bin directory was already created and added to $PATH in the build-mdbook action
curl https://storage.googleapis.com/mysten-walrus-binaries/walrus-latest-ubuntu-x86_64 -o bin/walrus
curl https://storage.googleapis.com/mysten-walrus-binaries/walrus-testnet-latest-ubuntu-x86_64 -o bin/walrus
chmod +x bin/walrus
mkdir -p ~/.walrus
curl https://storage.googleapis.com/mysten-walrus-binaries/walrus-configs/client_config.yaml -o ~/.walrus/client_config.yaml
walrus -h # Ensure the walrus binary works
mkdir -p ~/.config/walrus
echo '${{ inputs.WALRUS_CONFIG }}' > ~/.config/walrus/client_config.yaml
walrus --version
walrus info # Ensure the walrus binary works
shell: bash

- name: Clone walrus-sites
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
with:
SUI_ADDRESS: "${{ vars.SUI_ADDRESS }}"
SUI_KEYSTORE: "${{ secrets.SUI_KEYSTORE }}"
WALRUS_CONFIG: "${{ vars.WALRUS_CONFIG }}"

- name: Update Walrus Site
run: >
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
with:
SUI_ADDRESS: "${{ vars.SUI_ADDRESS }}"
SUI_KEYSTORE: "${{ secrets.SUI_KEYSTORE }}"
WALRUS_CONFIG: "${{ vars.WALRUS_CONFIG }}"

- name: Create temporary directory
run: "mkdir -p site"
Expand Down

0 comments on commit 0f23be3

Please sign in to comment.