You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .circleci/config.yml
+22-2Lines changed: 22 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1020,18 +1020,38 @@ jobs:
1020
1020
name: Build development contracts
1021
1021
command: |
1022
1022
echo "Building all contracts under ./contracts"
1023
-
export GLOBIGNORE="./contracts/floaty/"
1024
-
docker run --volumes-from with_code cosmwasm/rust-optimizer:0.12.13 ./contracts/*/
1023
+
export GLOBIGNORE="contracts/floaty"
1024
+
for contract_dir in contracts/*; do
1025
+
if [ -d "$contract_dir" ]; then
1026
+
echo "Building '$contract_dir' ..."
1027
+
docker run --volumes-from with_code cosmwasm/optimizer:0.15.0 "$contract_dir"
1028
+
fi
1029
+
done
1025
1030
- run:
1026
1031
name: Check development contracts
1027
1032
command: |
1028
1033
echo "Checking all contracts under ./artifacts"
1029
1034
docker run --volumes-from with_code rust:1.70.0 \
1030
1035
/bin/bash -e -c 'cd ./code; cargo run --bin cosmwasm-check artifacts/*.wasm'
1036
+
- run:
1037
+
name: Export development contracts
1038
+
command: |
1039
+
# copy into host
1031
1040
docker cp with_code:/code/artifacts .
1041
+
cd ./artifacts
1042
+
ls -lA .
1043
+
# Check checksums
1044
+
cat checksums.txt
1045
+
sha256sum -c checksums.txt
1032
1046
- run:
1033
1047
name: Publish artifacts on GitHub
1034
1048
command: |
1049
+
# This safety measure allows us to run the job until here for testing.
1050
+
if [ -z "$CIRCLE_TAG" ]; then
1051
+
echo "Not a tag build"
1052
+
exit 1
1053
+
fi
1054
+
1035
1055
TAG="$CIRCLE_TAG"
1036
1056
TITLE="$TAG"
1037
1057
BODY="The release notes are available in [CHANGELOG.md](https://github.com/CosmWasm/cosmwasm/blob/$TAG/CHANGELOG.md). For upgrading contracts also consult [MIGRATING.md](https://github.com/CosmWasm/cosmwasm/blob/$TAG/MIGRATING.md).\n\nAttached 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."
0 commit comments