Skip to content

Commit

Permalink
ci: update to sui v1.39.3 and use --ignore-chain in sui move build (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-mysten authored Dec 18, 2024
1 parent d1ebef5 commit 1e3b4d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Get the Sui testnet binary and start a local network
shell: bash
env:
SUI_BINARY_VERSION: "1.39.1" # used for downloading a specific Sui binary versions that matches the GraphQL schema for local network tests
SUI_BINARY_VERSION: "1.39.3" # used for downloading a specific Sui binary versions that matches the GraphQL schema for local network tests
SUI_NETWORK_RELEASE: "testnet" # which release to use
run: |
ASSET_NAME="sui-$SUI_NETWORK_RELEASE-v$SUI_BINARY_VERSION-ubuntu-x86_64.tgz"
Expand All @@ -111,22 +111,6 @@ jobs:
echo "$(pwd)" >> $GITHUB_PATH # we need it on the path for calling sui move build for some tests
./sui start --force-regenesis --with-faucet --with-indexer --with-graphql --pg-port 5432 --pg-db-name sui_indexer_v2 --epoch-duration-ms $EPOCH_DURATION_MS &
- name: Set up the CLI environment (need a client.yaml for calling some Sui commands)
shell: bash
run: |
mkdir -p $HOME/.sui/sui_config
tee $HOME/.sui/sui_config/client.yaml <<EOF
---
keystore:
File: home/.sui/sui_config/sui.keystore
envs:
- alias: localnet
rpc: "http://127.0.0.1:9000"
ws: ~
active_env: localnet
active_address: "0x14e7ac25259adcc373c96627893976d4fe562a3f3fedce493fc187c5ebd53eee"
EOF
- name: Run tests that require local network (GraphQL Client and Tx Builder)
env:
NETWORK: "local" # other expected options are mainnet, testnet, or devnet, or an actual URL to a GraphQL server: http://localhost:port
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test:
cargo test --doc

package_%.json: crates/sui-transaction-builder/tests/%/Move.toml crates/sui-transaction-builder/tests/%/sources/*.move
cd crates/sui-transaction-builder/tests/$(*F) && sui move build --dump-bytecode-as-base64 > ../../$@
cd crates/sui-transaction-builder/tests/$(*F) && sui move build --ignore-chain --dump-bytecode-as-base64 > ../../$@

.PHONY: test-with-localnet
test-with-localnet: package_test_example_v1.json package_test_example_v2.json
Expand Down

0 comments on commit 1e3b4d0

Please sign in to comment.