@@ -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
@@ -92,7 +95,7 @@ workflows:
92
95
matrix :
93
96
parameters :
94
97
# Run with MSRV and some modern stable Rust
95
- rust-version : ["1.74.0", "1.78 .0"]
98
+ rust-version : ["1.74.0", "1.82 .0"]
96
99
- benchmarking :
97
100
requires :
98
101
- package_vm
@@ -652,7 +655,8 @@ jobs:
652
655
653
656
contract_hackatom :
654
657
docker :
655
- - image : rust:1.74
658
+ # We compile this contract with the upper bound to detect issues with new Rust versions early
659
+ - image : rust:1.82
656
660
environment :
657
661
RUST_BACKTRACE : 1
658
662
working_directory : ~/cosmwasm/contracts/hackatom
@@ -664,10 +668,9 @@ jobs:
664
668
command : rustc --version; cargo --version; rustup --version
665
669
- restore_cache :
666
670
keys :
667
- - cargocache-v2-contract_hackatom-rust:1.74 -{{ checksum "Cargo.lock" }}
671
+ - cargocache-v2-contract_hackatom-rust:1.82 -{{ checksum "Cargo.lock" }}
668
672
- check_contract :
669
- min_version : " 1.4"
670
- skip_cosmwasm_check : true
673
+ min_version : " 2.2"
671
674
- save_cache :
672
675
paths :
673
676
- /usr/local/cargo/registry
@@ -677,7 +680,7 @@ jobs:
677
680
- target/wasm32-unknown-unknown/release/.fingerprint
678
681
- target/wasm32-unknown-unknown/release/build
679
682
- target/wasm32-unknown-unknown/release/deps
680
- key : cargocache-v2-contract_hackatom-rust:1.74 -{{ checksum "Cargo.lock" }}
683
+ key : cargocache-v2-contract_hackatom-rust:1.82 -{{ checksum "Cargo.lock" }}
681
684
682
685
contract_ibc_callbacks :
683
686
docker :
@@ -722,10 +725,8 @@ jobs:
722
725
- restore_cache :
723
726
keys :
724
727
- cargocache-v2-contract_ibc_reflect-rust:1.74-{{ checksum "Cargo.lock" }}
725
- # TODO: enable again once 2.2 is released
726
728
- check_contract :
727
729
min_version : " 2.2"
728
- skip_cosmwasm_check : true
729
730
- save_cache :
730
731
paths :
731
732
- /usr/local/cargo/registry
@@ -864,10 +865,8 @@ jobs:
864
865
- restore_cache :
865
866
keys :
866
867
- cargocache-v2-contract_reflect-rust:1.74-{{ checksum "Cargo.lock" }}
867
- # TODO: enable again once 2.2 is released
868
868
- check_contract :
869
869
min_version : " 2.2"
870
- skip_cosmwasm_check : true
871
870
- save_cache :
872
871
paths :
873
872
- /usr/local/cargo/registry
@@ -1144,7 +1143,7 @@ jobs:
1144
1143
1145
1144
coverage :
1146
1145
docker :
1147
- - image : rust:1.78 .0-alpine3.19
1146
+ - image : rust:1.82 .0-alpine3.19
1148
1147
environment :
1149
1148
# Limit the number of parallel jobs to avoid OOM crashes during doc testing
1150
1149
RUST_TEST_THREADS : 8
0 commit comments