Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
taitruong committed Dec 28, 2023
1 parent b1f5c07 commit 60277c0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ts-relayer-tests/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) # source: https://stackoverflow.com/a/246128/3437868
ARTIFACTS_DIR="$SCRIPT_DIR/../artifacts"
EXTERNAL_WASMS_DIR="$SCRIPT_DIR/../external-wasms"

## Compiles an optimizes the local contracts for testing with
## ts-relayer.
Expand All @@ -16,9 +13,9 @@ docker run --rm -v "$(pwd)":/code --platform linux/amd64 \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/workspace-optimizer:0.15.0

mkdir -p "$SCRIPT_DIR/internal"
cp "$ARTIFACTS_DIR/*.wasm $SCRIPT_DIR/internal"
cp "$EXTERNAL_WASMS_DIR/*.wasm $SCRIPT_DIR/internal"
mkdir -p ./ts-relayer-tests/internal
cp ./artifacts/*.wasm ./ts-relayer-tests/internal
cp ./external-wasms/*.wasm ./ts-relayer-tests/internal

echo "done. avaliable wasm blobs:"
ls ./ts-relayer-tests/internal

0 comments on commit 60277c0

Please sign in to comment.