Skip to content

build(deps): Bump cosmwasm-schema from 1.5.3 to 2.1.1 #731

build(deps): Bump cosmwasm-schema from 1.5.3 to 2.1.1

build(deps): Bump cosmwasm-schema from 1.5.3 to 2.1.1 #731

name: Desmos Bindings
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml
on:
pull_request:
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v2
- name: Verify .rs or toml files πŸ‘€
uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
**/**.rs
**/**.toml
**/Cargo.lock
FILES: |
Cargo.lock
- name: Setup Rust βš™
if: env.GIT_DIFF
uses: actions-rs/toolchain@v1
with:
toolchain: 1.71.1
profile: minimal
override: true
- name: Prepare rust cache πŸ—„οΈ
if: env.GIT_DIFF
uses: Swatinem/rust-cache@v2
- name: Unit tests πŸ§ͺ
if: env.GIT_DIFF
working-directory: ./packages/bindings
run: cargo unit-test --locked
env:
RUST_BACKTRACE: 1
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v2
- name: Verify .rs files πŸ‘€
uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
**/**.rs
- name: Setup Rust βš™
if: env.GIT_DIFF
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.71.1
override: true
components: rustfmt, clippy
- name: Prepare rust cache πŸ—„οΈ
if: env.GIT_DIFF
uses: Swatinem/rust-cache@v2
- name: Run cargo fmt βœ…
if: env.GIT_DIFF
run: cargo fmt --all -- --check
- name: Run cargo clippy βœ…
if: env.GIT_DIFF
run: cargo clippy
build:
name: Test features build
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v2
- name: Verify .rs and toml files πŸ‘€
uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
**/**.rs
**/**.toml
- name: Setup Rust βš™
if: env.GIT_DIFF
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.71.1
override: true
components: rustfmt, clippy
- name: Prepare rust cache πŸ—„
if: env.GIT_DIFF
uses: Swatinem/rust-cache@v2
- name: Install wasm32-unknown-unknown target βš™
run: rustup target add wasm32-unknown-unknown
- name: Build No features πŸ§ͺ
if: env.GIT_DIFF
working-directory: ./packages/bindings
run: cargo build --no-default-features --target wasm32-unknown-unknown
- name: Build feature (profiles) πŸ§ͺ
if: env.GIT_DIFF
working-directory: ./packages/bindings
run: cargo build --no-default-features --features profiles --target wasm32-unknown-unknown
- name: Build feature (subspaces) πŸ§ͺ
if: env.GIT_DIFF
working-directory: ./packages/bindings
run: cargo build --no-default-features --features subspaces --target wasm32-unknown-unknown
- name: Build feature (relationships) πŸ§ͺ
if: env.GIT_DIFF
working-directory: ./packages/bindings
run: cargo build --no-default-features --features relationships --target wasm32-unknown-unknown
- name: Build feature (posts) πŸ§ͺ
if: env.GIT_DIFF
working-directory: ./packages/bindings
run: cargo build --no-default-features --features posts --target wasm32-unknown-unknown
- name: Build feature (reactions) πŸ§ͺ
if: env.GIT_DIFF
working-directory: ./packages/bindings
run: cargo build --no-default-features --features reactions --target wasm32-unknown-unknown
- name: Build feature (reports) πŸ§ͺ
if: env.GIT_DIFF
working-directory: ./packages/bindings
run: cargo build --no-default-features --features reports --target wasm32-unknown-unknown
- name: Build all feature πŸ§ͺ
if: env.GIT_DIFF
working-directory: ./packages/bindings
run: |
cargo build --all-features --target wasm32-unknown-unknown
check:
name: Check desmos-bindings build
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v2
- name: Verify .rs and toml files πŸ‘€
uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
**/**.rs
**/**.toml
- name: Setup Rust βš™
if: env.GIT_DIFF
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.71.1
override: true
components: rustfmt, clippy
- name: Prepare rust cache πŸ—„
if: env.GIT_DIFF
uses: Swatinem/rust-cache@v2
- name: Install wasm2wat βš™
run: |
wget https://github.com/WebAssembly/wabt/releases/download/1.0.32/wabt-1.0.32-ubuntu.tar.gz
tar -xzf wabt-1.0.32-ubuntu.tar.gz
sudo mv wabt-1.0.32/bin/wasm2wat .
- name: Install wasm32-unknown-unknown target βš™
run: rustup target add wasm32-unknown-unknown
- name: Build all feature πŸ§ͺ
if: env.GIT_DIFF
working-directory: ./packages/bindings
run: |
cargo build --all-features --target wasm32-unknown-unknown
- name: Check floating issue πŸ‘€
if: env.GIT_DIFF
run: |
./wasm2wat target/wasm32-unknown-unknown/debug/desmos_bindings.wasm > tmp.wat
./scripts/check_floating.sh tmp.wat