Skip to content

fix(SV adapter): check on withdraw that contract sends at least one asset #245

fix(SV adapter): check on withdraw that contract sends at least one asset

fix(SV adapter): check on withdraw that contract sends at least one asset #245

name: Compiled binaries checks
on:
pull_request:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
check-artifacts-size:
runs-on: ubuntu-latest
name: Check Artifacts Size
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}
- name: Checkout sources
uses: actions/checkout@v3
- name: Restore cached cargo artifacts
uses: actions/cache@v4
with:
path: |
~/.cargo/bin
~/.cargo/git/checkouts
~/.cargo/git/db
~/.cargo/registry/cache
~/.cargo/registry/index
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Restore cached artifacts
uses: actions/cache@v4
with:
path: artifacts
key: ${{ runner.os }}-artifacts-${{ hashFiles('**/Cargo.lock') }}
- name: Build Artifacts
run: |
docker run \
-v "$GITHUB_WORKSPACE":/code \
-v ~/.cargo/registry:/usr/local/cargo/registry \
-v ~/.cargo/git:/usr/local/cargo/git \
cosmwasm/rust-optimizer:0.17.0
# if there are new integrations with custom protobuf paths, we need to re-enable our custom optimizer
# ghcr.io/astroport-fi/rust-optimizer:v0.15.1-astroport
- name: Check Artifacts Size
run: |
$GITHUB_WORKSPACE/scripts/check_artifacts_size.sh
cosmwasm-check:
runs-on: ubuntu-latest
name: Cosmwasm check
needs: check-artifacts-size
steps:
- name: Install Rust for compiling cosmwasm-check
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.88.0
- name: Install cosmwasm-check
run: cargo install --version 1.5.11 cosmwasm-check
- name: Checkout sources
uses: actions/checkout@v3
- name: Restore cached artifacts
uses: actions/cache/restore@v4
with:
path: artifacts
key: ${{ runner.os }}-artifacts-${{ hashFiles('**/Cargo.lock') }}
fail-on-cache-miss: true
- name: Cosmwasm check
run: |
cosmwasm-check $GITHUB_WORKSPACE/artifacts/*.wasm --available-capabilities staking,cosmwasm_1_1,neutron,iterator,stargate