Skip to content

Commit

Permalink
Update build_and_deploy to use rust-optimizer 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Aug 12, 2020
1 parent 7614d09 commit 00ed028
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -327,25 +327,20 @@ jobs:
- run:
name: Build development contracts
command: |
for contract_dir in ./contracts/*/; do
name=$(basename $contract_dir)
echo "Building $name ..."
docker run --volumes-from with_code cosmwasm/rust-optimizer:0.9.0 ./contracts/$name
docker cp with_code:/code/contracts/$name/contract.wasm ./artifacts/$name.wasm
done
- run:
name: Create checksums
working_directory: artifacts
command: sha256sum *.wasm > checksums.txt && cat checksums.txt
docker run --volumes-from with_code cosmwasm/rust-optimizer:0.10.0
- run:
name: Publish artifacts on GitHub
command: |
TAG="$CIRCLE_TAG"
TITLE="$TAG"
BODY="Attached there are some build artifacts generated at this tag. Those are for development purposes only! Please use crates.io to find the packages of this release."
ghr -t "$GITHUB_TOKEN" \
-u "$CIRCLE_PROJECT_USERNAME" -r "$CIRCLE_PROJECT_REPONAME" \
-c "$CIRCLE_SHA1" \
-n "$TITLE" -b "$BODY" \
-delete \
"$TAG" ./artifacts/
name: Show checksums
working_directory: artifacts
command: ls -l && cat checksums.txt
# - run:
# name: Publish artifacts on GitHub
# command: |
# TAG="$CIRCLE_TAG"
# TITLE="$TAG"
# BODY="Attached there are some build artifacts generated at this tag. Those are for development purposes only! Please use crates.io to find the packages of this release."
# ghr -t "$GITHUB_TOKEN" \
# -u "$CIRCLE_PROJECT_USERNAME" -r "$CIRCLE_PROJECT_REPONAME" \
# -c "$CIRCLE_SHA1" \
# -n "$TITLE" -b "$BODY" \
# -delete \
# "$TAG" ./artifacts/

0 comments on commit 00ed028

Please sign in to comment.