Skip to content

Commit

Permalink
Add cosmwasm-check fallback for latest version to CI
Browse files Browse the repository at this point in the history
(cherry picked from commit ff1ba89)
  • Loading branch information
chipshort authored and mergify[bot] committed Oct 24, 2024
1 parent ced790e commit da6e120
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ commands:
- run:
name: Run cosmwasm-check (<< parameters.min_version >>)
command: |
cargo install cosmwasm-check@~<< parameters.min_version >> --locked --force
# Try installing min_version, but fall back to latest main version.
# This allows us to test contracts against the latest cosmwasm-check before releasing it.
cargo install cosmwasm-check@~<< parameters.min_version >> --locked --force \
|| cargo install --path ../../packages/check --locked --force
cosmwasm-check --version
cosmwasm-check target/wasm32-unknown-unknown/release/*.wasm
# Run clippy after wasm build to ensure target/wasm32-unknown-unknown/release/<contract>.wasm exists
Expand Down Expand Up @@ -666,10 +669,8 @@ jobs:
- restore_cache:
keys:
- cargocache-v2-contract_hackatom-rust:1.82-{{ checksum "Cargo.lock" }}
# TODO: enable again once 2.2 is released
- check_contract:
min_version: "1.4"
skip_cosmwasm_check: true
min_version: "2.2"
- save_cache:
paths:
- /usr/local/cargo/registry
Expand Down Expand Up @@ -724,10 +725,8 @@ jobs:
- restore_cache:
keys:
- cargocache-v2-contract_ibc_reflect-rust:1.74-{{ checksum "Cargo.lock" }}
# TODO: enable again once 2.2 is released
- check_contract:
min_version: "2.2"
skip_cosmwasm_check: true
- save_cache:
paths:
- /usr/local/cargo/registry
Expand Down Expand Up @@ -866,10 +865,8 @@ jobs:
- restore_cache:
keys:
- cargocache-v2-contract_reflect-rust:1.74-{{ checksum "Cargo.lock" }}
# TODO: enable again once 2.2 is released
- check_contract:
min_version: "2.2"
skip_cosmwasm_check: true
- save_cache:
paths:
- /usr/local/cargo/registry
Expand Down

0 comments on commit da6e120

Please sign in to comment.