Move utils/quartz-proto to core/quartz-proto Fix Cargo.toml paths Add default working-directory for cosmwasm CI jobs Fix default working-directory Rename .cargo/config -> config.toml Update working-directory Update cosmwasm workflows Update rust.yml paths Add aliases to cargo config.toml Test working-directory Update cosmwasm CI jobs Use --manifest-path Use dtolnay/rust-toolchain action Fix workflow Remove --locked SSH agent SSH agent for schema Remove unused SSH key Exclude cw-tee-mtcs from rust CI jobs Clippy fix cargo fmt Add CONTRIBUTING.md Update README.md
90 lines
2 KiB
YAML
90 lines
2 KiB
YAML
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml
|
|
|
|
name: Cosmwasm basic
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/Basic.yml
|
|
- Cargo.lock
|
|
- Cargo.toml
|
|
- apps/**
|
|
- cosmwasm/**
|
|
push:
|
|
branches: master
|
|
paths:
|
|
- .github/workflows/rust.yml
|
|
- .gitmodules
|
|
- Cargo.lock
|
|
- Cargo.toml
|
|
- apps/**
|
|
- cosmwasm/**
|
|
|
|
env:
|
|
CARGO_INCREMENTAL: 0
|
|
CARGO_PROFILE_DEV_DEBUG: 1
|
|
CARGO_PROFILE_RELEASE_DEBUG: 1
|
|
RUST_BACKTRACE: short
|
|
CARGO_NET_RETRY: 10
|
|
RUSTUP_MAX_RETRIES: 10
|
|
CARGO_TERM_COLOR: always
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: apps/mtcs/contracts/cw-tee-mtcs
|
|
|
|
jobs:
|
|
|
|
test-wasm:
|
|
name: Test Suite
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install wasm32-unknown-unknown toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
target: wasm32-unknown-unknown
|
|
|
|
- name: Setup SSH access for private deps
|
|
uses: webfactory/ssh-agent@v0.9.0
|
|
with:
|
|
ssh-private-key: |
|
|
${{ secrets.MTCS_SSH_KEY }}
|
|
|
|
- name: Run unit tests (for cw-tee-mtcs)
|
|
run: cargo unit-test --locked
|
|
env:
|
|
RUST_BACKTRACE: 1
|
|
|
|
- name: Compile WASM contract
|
|
run: cargo wasm --locked
|
|
env:
|
|
RUSTFLAGS: "-C link-arg=-s"
|
|
|
|
schema:
|
|
name: Schema
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install stable toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
target: wasm32-unknown-unknown
|
|
|
|
- name: Setup SSH access for private deps
|
|
uses: webfactory/ssh-agent@v0.9.0
|
|
with:
|
|
ssh-private-key: |
|
|
${{ secrets.MTCS_SSH_KEY }}
|
|
|
|
- name: Generate Schema (for cw-tee-mtcs)
|
|
run: cargo schema --locked
|
|
|
|
- name: Schema Changes
|
|
# fails if any changes not committed
|
|
run: git diff --exit-code schema
|