Skip to content

Commit edc23f5

Browse files
committed
run cosmwasm-check against release contracts
1 parent a56477c commit edc23f5

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/ci-contracts.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ jobs:
7777
command: clippy
7878
args: --lib --manifest-path contracts/Cargo.toml --workspace --all-targets -- -D warnings
7979

80+
- name: Build release contracts
81+
uses: actions-rs/cargo@v1
82+
env:
83+
RUSTFLAGS: '-C link-arg=-s'
84+
with:
85+
command: build
86+
args: --release --manifest-path contracts/Cargo.toml --workspace --lib --target wasm32-unknown-unknown
87+
88+
# cosmwasm-check against debug build will not work due to the memory overhead
8089
- name: Check chain compatibility
81-
run: cosmwasm-check contracts/target/wasm32-unknown-unknown/debug/*.wasm
82-
90+
run: cosmwasm-check contracts/target/wasm32-unknown-unknown/release/*.wasm
91+

0 commit comments

Comments
 (0)