@@ -35,7 +35,10 @@ commands:
35
35
- run :
36
36
name : Run cosmwasm-check (<< parameters.min_version >>)
37
37
command : |
38
- cargo install cosmwasm-check@~<< parameters.min_version >> --locked --force
38
+ # Try installing min_version, but fall back to latest main version.
39
+ # This allows us to test contracts against the latest cosmwasm-check before releasing it.
40
+ cargo install cosmwasm-check@~<< parameters.min_version >> --locked --force \
41
+ || cargo install --path ../../packages/check --locked --force
39
42
cosmwasm-check --version
40
43
cosmwasm-check target/wasm32-unknown-unknown/release/*.wasm
41
44
# Run clippy after wasm build to ensure target/wasm32-unknown-unknown/release/<contract>.wasm exists
@@ -666,10 +669,8 @@ jobs:
666
669
- restore_cache :
667
670
keys :
668
671
- cargocache-v2-contract_hackatom-rust:1.82-{{ checksum "Cargo.lock" }}
669
- # TODO: enable again once 2.2 is released
670
672
- check_contract :
671
- min_version : " 1.4"
672
- skip_cosmwasm_check : true
673
+ min_version : " 2.2"
673
674
- save_cache :
674
675
paths :
675
676
- /usr/local/cargo/registry
@@ -724,10 +725,8 @@ jobs:
724
725
- restore_cache :
725
726
keys :
726
727
- cargocache-v2-contract_ibc_reflect-rust:1.74-{{ checksum "Cargo.lock" }}
727
- # TODO: enable again once 2.2 is released
728
728
- check_contract :
729
729
min_version : " 2.2"
730
- skip_cosmwasm_check : true
731
730
- save_cache :
732
731
paths :
733
732
- /usr/local/cargo/registry
@@ -866,10 +865,8 @@ jobs:
866
865
- restore_cache :
867
866
keys :
868
867
- cargocache-v2-contract_reflect-rust:1.74-{{ checksum "Cargo.lock" }}
869
- # TODO: enable again once 2.2 is released
870
868
- check_contract :
871
869
min_version : " 2.2"
872
- skip_cosmwasm_check : true
873
870
- save_cache :
874
871
paths :
875
872
- /usr/local/cargo/registry
0 commit comments