Skip to content

Commit

Permalink
build optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-szabo committed Dec 8, 2020
1 parent 1892b69 commit ff2ebc8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[alias]
build-all = "build --workspace --all-targets --"
build-wasm-tendermint = "build -p tendermint --manifest-path tendermint/Cargo.toml --target wasm32-unknown-unknown --release --no-default-features --"
build-wasm-light-client = "build -p tendermint-light-client --manifest-path light-client/Cargo.toml --target wasm32-unknown-unknown --release --no-default-features --"
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ jobs:
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --workspace --all-targets
command: build-all

# At the time of writing `--no-default-features` does not work with the `-p` flag, hence we avoid the Cargo GitHub Action.
light-client-wasm:
runs-on: ubuntu-latest
steps:
Expand All @@ -40,7 +38,9 @@ jobs:
toolchain: stable
override: true
target: wasm32-unknown-unknown
- name: Build Tendermint for WASM
run: cd tendermint && cargo build --target wasm32-unknown-unknown --release --no-default-features
- name: Build Light Client for WASM
run: cd light-client && cargo build --target wasm32-unknown-unknown --release --no-default-features
- uses: actions-rs/cargo@v1
with:
command: build-wasm-tendermint
- uses: actions-rs/cargo@v1
with:
command: build-wasm-light-client

0 comments on commit ff2ebc8

Please sign in to comment.