This commit is contained in:
benedettadavico
2025-09-16 11:40:28 +02:00
parent d32e30d4e5
commit caeb13450b
2 changed files with 8 additions and 5 deletions
@@ -32,11 +32,7 @@ jobs:
run: make optimize-contracts
- name: Check optimized contracts
run: |
docker run --rm --platform linux/amd64 \
-v ${{ github.workspace }}:/code --workdir /code \
cosmwasm/optimizer:0.17.0 /bin/sh -lc \
"cargo install cosmwasm-check && cosmwasm-check contracts/artifacts/*.wasm"
run: make docker-check-contracts
- name: Prepare build output
shell: bash
+7
View File
@@ -179,6 +179,13 @@ optimize-contracts:
# Cleanup temporary artefacts directory
@rm -rf artifacts 2>/dev/null || true
# Check artifacts with cosmwasm-check inside the optimizer image
docker-check-contracts:
@docker run --rm --platform $(COSMWASM_OPTIMIZER_PLATFORM) \
-v $(CURDIR):/code --workdir /code \
--entrypoint /bin/sh \
$(COSMWASM_OPTIMIZER_IMAGE) -lc "cargo install cosmwasm-check && cosmwasm-check contracts/artifacts/*.wasm"
wasm-opt-contracts:
@for WASM in $(WASM_CONTRACT_DIR)/*.wasm; do \
echo "Running wasm-opt on $$WASM"; \