Skip to content

Merge pull request #5 from palomachain/bugfix/action-cosmwasm-check #5

Merge pull request #5 from palomachain/bugfix/action-cosmwasm-check

Merge pull request #5 from palomachain/bugfix/action-cosmwasm-check #5

Workflow file for this run

# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml
on:
push:
branches:
- main
- release/*
name: Wasm Checks
jobs:
wasm-check:
name: wasm-check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Add wasm32 target
run: rustup target add wasm32-unknown-unknown
- name: Build wasm release
run: |
for C in ./contracts/*/
do
echo "Compiling `basename $C`..."
(cd $C && cargo build --release --lib --target wasm32-unknown-unknown --locked)
done
- name: Install cosmwasm-check
uses: actions-rs/cargo@v1
with:
command: install
args: --debug cosmwasm-check
- name: Check wasm contracts
run: cosmwasm-check ./target/wasm32-unknown-unknown/release/*.wasm