Skip to content

Commit

Permalink
ci: install check_contract thought cargo make
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Jul 21, 2022
1 parent e005a95 commit fba5bde
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,14 @@ command = "cargo"
dependencies = ["install_wasm"]
env = { RUSTFLAGS = "-C link-arg=-s" }

[tasks.install_check_contract]
condition = { files_not_exist = ["$HOME/.cargo/bin/check_contract"] }
install_crate = { crate_name = "cosmwasm-vm" }
install_crate_args = ["--version", "1.0.0", "--features", "iterator", "--example", "check_contract"]

[tasks.check_contracts]
dependencies = ["wasm"]
dependencies = ["wasm", "install_check_contract"]
script = '''
if [[ ! -e ~/.cargo/bin/check_contract ]]; then cargo install --debug --version 1.0.0 --features iterator --force --example check_contract -- cosmwasm-vm ; fi
for W in ./target/wasm32-unknown-unknown/release/*.wasm
do
echo -n "Checking `basename $W`... "
Expand Down

0 comments on commit fba5bde

Please sign in to comment.