Browse Source

substrate v2: update build instructions

Mokhtar Naamani 5 years ago
parent
commit
64dae84ae8
3 changed files with 4 additions and 22 deletions
  1. 1 1
      .travis.yml
  2. 3 3
      README.md
  3. 0 18
      build.sh

+ 1 - 1
.travis.yml

@@ -8,5 +8,5 @@ before_script:
   - ./setup.sh
 script:
   - cargo fmt --all -- --check
-  - cargo build
   - cargo test --verbose --all
+  - cargo build --release

+ 3 - 3
README.md

@@ -18,7 +18,7 @@ The joystream runtime builds on [substrate v1.0](https://docs.substrate.dev/docs
 To compile the runtime you will need some tools such as: Rust, llvm and openssl. You can install most of the dependencies with:
 
 ```bash
-curl https://getsubstrate.io -sSf | bash
+curl https://getsubstrate.io -sSf | bash -s -- --fast
 ```
 
 ## Getting Started - Building the WASM runtime
@@ -27,12 +27,12 @@ curl https://getsubstrate.io -sSf | bash
 git clone https://github.com/Joystream/substrate-runtime-joystream
 cd substrate-runtime-joystream/
 ./setup.sh
-./build.sh
+cargo build --release
 ```
 
 This produces the WASM "blob" output in:
 
-`wasm/target/wasm32-unknown-unknown/release/joystream_node_runtime_wasm.compact.wasm`
+`target/release/wbuild/joystream-node-runtime/joystream_node_runtime.compact.wasm`
 
 See deployment for notes on how to deploy this runtime on a live system.
 

+ 0 - 18
build.sh

@@ -1,18 +0,0 @@
-#!/usr/bin/env bash
-set -e
-
-if cargo --version | grep -q "nightly"; then
-	CARGO_CMD="cargo"
-else
-	CARGO_CMD="cargo +nightly"
-fi
-
-pushd wasm/
-
-$CARGO_CMD build --target=wasm32-unknown-unknown --release
-
-for i in joystream_node_runtime_wasm
-do
-	wasm-gc target/wasm32-unknown-unknown/release/$i.wasm target/wasm32-unknown-unknown/release/$i.compact.wasm
-done
-