Skip to content

Commit

Permalink
Add CI job to run cosmwasm check
Browse files Browse the repository at this point in the history
  • Loading branch information
themicp committed Dec 5, 2023
1 parent 169f8a4 commit 0349ddd
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/Basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,34 @@ jobs:
- name: Schema Changes
# fails if any changes not committed
run: git diff --exit-code

cosmwasm-check:
name: Cosmwasm Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown
override: true

- name: Install cosmwasm-check from crates.io
uses: baptiste0928/cargo-install@v2
with:
crate: cosmwasm-check

- name: Compile WASM contract
uses: actions-rs/cargo@v1
with:
command: wasm
args: --locked
env:
RUSTFLAGS: "-C link-arg=-s"

- name: Run cargo hack
run: cosmwasm-check target/wasm32-unknown-unknown/release/light_client.wasm

0 comments on commit 0349ddd

Please sign in to comment.