6
6
7
7
commands :
8
8
check_contract :
9
+ parameters :
10
+ min_version :
11
+ type : string
9
12
steps :
10
13
- run :
11
14
name : Add wasm32 target
@@ -23,15 +26,9 @@ commands:
23
26
name : Build wasm binary
24
27
command : cargo wasm --locked
25
28
- run :
26
- name : Run cosmwasm-check (2.0)
27
- command : |
28
- cargo install cosmwasm-check@~2.0 --locked
29
- cosmwasm-check --version
30
- cosmwasm-check target/wasm32-unknown-unknown/release/*.wasm
31
- - run :
32
- name : Run cosmwasm-check (1.4)
29
+ name : Run cosmwasm-check (<<min_version>>)
33
30
command : |
34
- cargo install cosmwasm-check@~1.4 --locked
31
+ cargo install cosmwasm-check@~<<min_version>> --locked
35
32
cosmwasm-check --version
36
33
cosmwasm-check target/wasm32-unknown-unknown/release/*.wasm
37
34
# Run clippy after wasm build to ensure target/wasm32-unknown-unknown/release/<contract>.wasm exists
@@ -484,7 +481,10 @@ jobs:
484
481
- restore_cache :
485
482
keys :
486
483
- cargocache-v2-contract_burner-rust:1.73-{{ checksum "Cargo.lock" }}
487
- - check_contract
484
+ - check_contract :
485
+ min_version : " 1.4"
486
+ - check_contract :
487
+ min_version : " 2.0"
488
488
- save_cache :
489
489
paths :
490
490
- /usr/local/cargo/registry
@@ -511,7 +511,10 @@ jobs:
511
511
- restore_cache :
512
512
keys :
513
513
- cargocache-v2-contract_crypto_verify-rust:1.73-{{ checksum "Cargo.lock" }}
514
- - check_contract
514
+ - check_contract :
515
+ min_version : " 1.4"
516
+ - check_contract :
517
+ min_version : " 2.0"
515
518
- save_cache :
516
519
paths :
517
520
- /usr/local/cargo/registry
@@ -538,7 +541,10 @@ jobs:
538
541
- restore_cache :
539
542
keys :
540
543
- cargocache-v2-contract_cyberpunk-rust:1.73-{{ checksum "Cargo.lock" }}
541
- - check_contract
544
+ - check_contract :
545
+ min_version : " 1.4"
546
+ - check_contract :
547
+ min_version : " 2.0"
542
548
- save_cache :
543
549
paths :
544
550
- /usr/local/cargo/registry
@@ -565,7 +571,10 @@ jobs:
565
571
- restore_cache :
566
572
keys :
567
573
- cargocache-v2-contract_hackatom-rust:1.73-{{ checksum "Cargo.lock" }}
568
- - check_contract
574
+ - check_contract :
575
+ min_version : " 1.4"
576
+ - check_contract :
577
+ min_version : " 2.0"
569
578
- save_cache :
570
579
paths :
571
580
- /usr/local/cargo/registry
@@ -592,7 +601,10 @@ jobs:
592
601
- restore_cache :
593
602
keys :
594
603
- cargocache-v2-contract_ibc_reflect-rust:1.73-{{ checksum "Cargo.lock" }}
595
- - check_contract
604
+ - check_contract :
605
+ min_version : " 1.4"
606
+ - check_contract :
607
+ min_version : " 2.0"
596
608
- save_cache :
597
609
paths :
598
610
- /usr/local/cargo/registry
@@ -619,7 +631,10 @@ jobs:
619
631
- restore_cache :
620
632
keys :
621
633
- cargocache-v2-contract_ibc_reflect_send-rust:1.73-{{ checksum "Cargo.lock" }}
622
- - check_contract
634
+ - check_contract :
635
+ min_version : " 1.4"
636
+ - check_contract :
637
+ min_version : " 2.0"
623
638
- save_cache :
624
639
paths :
625
640
- /usr/local/cargo/registry
@@ -646,7 +661,10 @@ jobs:
646
661
- restore_cache :
647
662
keys :
648
663
- cargocache-v2-contract_floaty-rust:1.73-{{ checksum "Cargo.lock" }}
649
- - check_contract
664
+ - check_contract :
665
+ min_version : " 1.4"
666
+ - check_contract :
667
+ min_version : " 2.0"
650
668
- save_cache :
651
669
paths :
652
670
- /usr/local/cargo/registry
@@ -673,7 +691,10 @@ jobs:
673
691
- restore_cache :
674
692
keys :
675
693
- cargocache-v2-contract_queue-rust:1.73-{{ checksum "Cargo.lock" }}
676
- - check_contract
694
+ - check_contract :
695
+ min_version : " 1.4"
696
+ - check_contract :
697
+ min_version : " 2.0"
677
698
- save_cache :
678
699
paths :
679
700
- /usr/local/cargo/registry
@@ -700,7 +721,10 @@ jobs:
700
721
- restore_cache :
701
722
keys :
702
723
- cargocache-v2-contract_reflect-rust:1.73-{{ checksum "Cargo.lock" }}
703
- - check_contract
724
+ - check_contract :
725
+ min_version : " 1.4"
726
+ - check_contract :
727
+ min_version : " 2.0"
704
728
- save_cache :
705
729
paths :
706
730
- /usr/local/cargo/registry
@@ -727,7 +751,10 @@ jobs:
727
751
- restore_cache :
728
752
keys :
729
753
- cargocache-v2-contract_staking-rust:1.73-{{ checksum "Cargo.lock" }}
730
- - check_contract
754
+ - check_contract :
755
+ min_version : " 1.4"
756
+ - check_contract :
757
+ min_version : " 2.0"
731
758
- save_cache :
732
759
paths :
733
760
- /usr/local/cargo/registry
@@ -754,7 +781,10 @@ jobs:
754
781
- restore_cache :
755
782
keys :
756
783
- cargocache-v2-contract_virus-rust:1.73-{{ checksum "Cargo.lock" }}
757
- - check_contract
784
+ - check_contract :
785
+ min_version : " 1.4"
786
+ - check_contract :
787
+ min_version : " 2.0"
758
788
- save_cache :
759
789
paths :
760
790
- /usr/local/cargo/registry
@@ -781,7 +811,10 @@ jobs:
781
811
- restore_cache :
782
812
keys :
783
813
- cargocache-v2-contract_empty-rust:1.73-{{ checksum "Cargo.lock" }}
784
- - check_contract
814
+ - check_contract :
815
+ min_version : " 1.4"
816
+ - check_contract :
817
+ min_version : " 2.0"
785
818
- save_cache :
786
819
paths :
787
820
- /usr/local/cargo/registry
0 commit comments