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 20, 2022
1 parent e005a95 commit 2df21cd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,13 @@ command = "cargo"
dependencies = ["install_wasm"]
env = { RUSTFLAGS = "-C link-arg=-s" }

[tasks.install_check_contract]
args = ["install", "--debug", "--version", "1.0.0", "--features", "iterator", "--example", "check_contract", "--", "cosmwasm-vm"]
command = "cargo"

[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 2df21cd

Please sign in to comment.