From 12e17691361ba9bd4f801d766eb3642287976e20 Mon Sep 17 00:00:00 2001 From: Miguel Hervas Date: Thu, 4 Nov 2021 00:46:26 +0100 Subject: [PATCH] add Compressed Wasm build --- .github/workflows/build-matrix.json | 2 +- .github/workflows/build.yml | 1 + Cargo.lock | 2 +- docker-compose-local-relay.yml | 4 ++-- runtime/altair/Cargo.toml | 2 +- scripts/run_collator.sh | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-matrix.json b/.github/workflows/build-matrix.json index 36afbe594f..5037518fba 100644 --- a/.github/workflows/build-matrix.json +++ b/.github/workflows/build-matrix.json @@ -10,6 +10,6 @@ "os": "ubuntu-latest", "target": "build-runtime", "run_on_event": "push", - "rust_toolchain": "1.53.0" + "rust_toolchain": "1.56.1" } ] diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8cff4062ee..4c8cfef4f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,3 +66,4 @@ jobs: name: Publish to GCS run: | gsutil cp ./runtime/altair/target/srtool/release/wbuild/altair-runtime/altair_runtime.compact.wasm gs://centrifuge-artifact-releases/parachain/altair_runtime-$(git rev-parse --short HEAD).compact.wasm + gsutil cp ./runtime/altair/target/srtool/release/wbuild/altair-runtime/altair_runtime.compact.compressed.wasm gs://centrifuge-artifact-releases/parachain/altair_runtime-$(git rev-parse --short HEAD).compact.compressed.wasm diff --git a/Cargo.lock b/Cargo.lock index 684ff307c3..fc176195e7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -164,7 +164,7 @@ dependencies = [ "sp-transaction-pool", "sp-version", "static_assertions", - "substrate-wasm-builder 3.0.0", + "substrate-wasm-builder 5.0.0-dev", "xcm", "xcm-builder", "xcm-executor", diff --git a/docker-compose-local-relay.yml b/docker-compose-local-relay.yml index a03089e7be..36546619f2 100644 --- a/docker-compose-local-relay.yml +++ b/docker-compose-local-relay.yml @@ -13,7 +13,7 @@ services: target: /chainspec.json read_only: true command: > - --chain=/chainspec.json + --chain=rococo-local --wasm-execution=compiled --execution=wasm --no-beefy @@ -41,7 +41,7 @@ services: target: /chainspec.json read_only: true command: > - --chain=/chainspec.json + --chain=rococo-local --base-path=/data --wasm-execution=compiled --execution=wasm diff --git a/runtime/altair/Cargo.toml b/runtime/altair/Cargo.toml index 0c54a1bd2c..7fbe1a0b55 100644 --- a/runtime/altair/Cargo.toml +++ b/runtime/altair/Cargo.toml @@ -104,7 +104,7 @@ pallet-crowdloan-claim = { path = "../../pallets/crowdloan-claim", default-featu pallet-crowdloan-reward = { path = "../../pallets/crowdloan-reward", default-features = false } [build-dependencies] -substrate-wasm-builder = "3.0.0" +substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" } [features] default = ["std"] diff --git a/scripts/run_collator.sh b/scripts/run_collator.sh index 11902a18d5..3a02990599 100755 --- a/scripts/run_collator.sh +++ b/scripts/run_collator.sh @@ -24,7 +24,7 @@ alice_p2p_port="30333" alice_rpc_port="9933" bob_p2p_port="30344" bob_rpc_port="9935" -chain="${RELAY_CHAIN_SPEC:-./res/rococo-local.json}" +chain="${RELAY_CHAIN_SPEC:-rococo-local}" get_id () {