Skip to content

Commit

Permalink
Merge pull request #532 from confio/release-0.15-2
Browse files Browse the repository at this point in the history
Release 0.15-2
  • Loading branch information
maurolacy authored Nov 8, 2022
2 parents ea9b1f0 + 60f04d9 commit d51783b
Showing 1 changed file with 27 additions and 32 deletions.
59 changes: 27 additions & 32 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ workflows:
jobs:
contract_tgrade_trusted_circle:
docker:
- image: rust:1.58.1
- image: rust:1.65.0
working_directory: ~/project/contracts/tgrade-trusted-circle
steps:
- checkout:
Expand All @@ -39,7 +39,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-tgrade-trusted-circle-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}
- cargocache-tgrade-trusted-circle-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
Expand All @@ -52,11 +52,11 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-tgrade-trusted-circle-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-tgrade-trusted-circle-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

contract_tgrade_oc_proposals:
docker:
- image: rust:1.58.1
- image: rust:1.65.0
working_directory: ~/project/contracts/tgrade-oc-proposals
steps:
- checkout:
Expand All @@ -66,7 +66,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-tgrade-oc-proposals-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}
- cargocache-tgrade-oc-proposals-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
Expand All @@ -79,11 +79,11 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-tgrade-oc-proposals-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-tgrade-oc-proposals-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

contract_tgrade_ap_voting:
docker:
- image: rust:1.58.1
- image: rust:1.65.0
working_directory: ~/project/contracts/tgrade-ap-voting
steps:
- checkout:
Expand All @@ -93,7 +93,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-tgrade-ap-voting-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}
- cargocache-tgrade-ap-voting-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
Expand All @@ -106,11 +106,11 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-tgrade-ap-voting-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-tgrade-ap-voting-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

contract_tgrade_tc_payments:
docker:
- image: rust:1.58.1
- image: rust:1.65.0
working_directory: ~/project/contracts/tgrade-tc-payments
steps:
- checkout:
Expand All @@ -120,7 +120,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-tgrade-tc-payments-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}
- cargocache-tgrade-tc-payments-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
Expand All @@ -133,11 +133,11 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-tgrade-tc-payments-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-tgrade-tc-payments-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

contract_tgrade_dispute_multisig:
docker:
- image: rust:1.58.1
- image: rust:1.65.0
working_directory: ~/project/contracts/tgrade-dispute-multisig
steps:
- checkout:
Expand All @@ -147,7 +147,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-tgrade-dispute-multisig-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}
- cargocache-tgrade-dispute-multisig-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
Expand All @@ -160,19 +160,19 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-tgrade-dispute-multisig-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-tgrade-dispute-multisig-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

lint:
docker:
- image: rust:1.58.1
steps:
- image: rust:1.65.0
step0:
- checkout
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version; rustup target list --installed
- restore_cache:
keys:
- cargocache-v2-lint-rust:1.58.1-{{ checksum "Cargo.lock" }}
- cargocache-v2-lint-rust:1.65.0-{{ checksum "Cargo.lock" }}
- run:
name: Add rustfmt component
command: rustup component add rustfmt
Expand All @@ -192,15 +192,15 @@ jobs:
- target/debug/.fingerprint
- target/debug/build
- target/debug/deps
key: cargocache-v2-lint-rust:1.58.1-{{ checksum "Cargo.lock" }}
key: cargocache-v2-lint-rust:1.65.0-{{ checksum "Cargo.lock" }}

# This runs one time on the top level to ensure all contracts compile properly into wasm.
# We don't run the wasm build per contract build, and then reuse a lot of the same dependencies, so this speeds up CI time
# for all the other tests.
# We also sanity-check the resultant wasm files.
wasm-build:
docker:
- image: rust:1.58.1
- image: rust:1.65.0
steps:
- checkout:
path: ~/project
Expand All @@ -209,7 +209,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-wasm-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}
- cargocache-wasm-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Add wasm32 target
command: rustup target add wasm32-unknown-unknown
Expand All @@ -222,22 +222,17 @@ jobs:
(cd $C && cargo build --release --target wasm32-unknown-unknown --locked --lib)
done
- run:
name: Install check_contract
name: Install cosmwasm-check
# Uses --debug for compilation speed.
command: cargo install --debug --features iterator --example check_contract --version 1.0.0 -- cosmwasm-vm
command: cargo install --debug --version 1.1.5 cosmwasm-check
- save_cache:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-wasm-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-wasm-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Check wasm contracts
command: |
for W in ./target/wasm32-unknown-unknown/release/*.wasm
do
echo -n "Checking $(basename $W) ... "
check_contract --supported-features iterator,staking,stargate,tgrade $W
done
command: cosmwasm-check --supported-features iterator,staking,stargate,tgrade ./target/wasm32-unknown-unknown/release/*.wasm
# This job roughly follows the instructions from https://circleci.com/blog/publishing-to-github-releases-via-circleci/
build_and_upload_contracts:
docker:
Expand All @@ -263,7 +258,7 @@ jobs:
- run:
name: Build development contracts
command: |
docker run --volumes-from with_code cosmwasm/workspace-optimizer:0.12.6
docker run --volumes-from with_code cosmwasm/workspace-optimizer:0.12.9
docker cp with_code:/code/artifacts ./artifacts
- run:
name: Show data
Expand All @@ -284,7 +279,7 @@ jobs:
"$TAG" ./artifacts/
build_and_upload_schemas:
docker:
- image: rust:1.58.1
- image: rust:1.65.0
working_directory: ~/project
steps:
- checkout:
Expand Down

0 comments on commit d51783b

Please sign in to comment.