Skip to content

Commit

Permalink
pivot to alias usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jglynn committed Nov 1, 2023
1 parent e697b19 commit 3d62d3f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[alias]
wasm = "build --release --lib --target wasm32-unknown-unknown"
wasm-debug = "build --lib --target wasm32-unknown-unknown"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --bin schema"
6 changes: 2 additions & 4 deletions .github/workflows/cosmwasm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:

- name: Install Tools
run: |
cargo install cargo-wasm --version 0.4.1 --locked
cargo install cosmwasm-check --version 1.4.1 --locked
cargo install cargo-llvm-cov --version 0.5.35 --locked
cargo install cargo-sbom --version 0.8.4 --locked
Expand All @@ -55,9 +54,8 @@ jobs:
- name: Build
run: |
cargo build --release --verbose
# RUSTFLAGS='-C link-arg=-s' cargo wasm build
# cosmwasm-check target/wasm32-unknown-unknown/release/cw_escrow.wasm
RUSTFLAGS='-C link-arg=-s' cargo wasm
cosmwasm-check target/wasm32-unknown-unknown/release/cw_escrow.wasm
- name: Test
run: |
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Using toolchain plugin, install Rust v1.69 including:
Anything we cannot get from standard toolchain we need to install manually.

```bash
cargo install cargo-wasm --version 0.4.1 --locked
cargo install cosmwasm-check --version 1.4.1 --locked
cargo install cargo-llvm-cov --version 0.5.35 --locked
cargo install cargo-sbom --version 0.8.4 --locked
Expand All @@ -45,8 +44,8 @@ cargo install cargo-sonar --version 0.21.0 --locked
Build WASM and perform a cosmwasm-check

```bash
# cargo build --release
RUSTFLAGS='-C link-arg=-s' cargo wasm build
# uses `wasm` alias from .carg/config
RUSTFLAGS='-C link-arg=-s' cargo wasm
cosmwasm-check target/wasm32-unknown-unknown/release/cw_escrow.wasm
```

Expand Down

0 comments on commit 3d62d3f

Please sign in to comment.