bugfix #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml | |
on: | |
push: | |
branches: | |
- main | |
- release/* | |
- bugfix/action-cosmwasm-check | |
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 | |