From 854acc96d5be0e040b523d4dafed21818cfdde8f Mon Sep 17 00:00:00 2001 From: rzadp Date: Thu, 8 Aug 2024 14:02:42 +0200 Subject: [PATCH 1/3] Build the node na CI --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b52ec02..e7013ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,6 +54,10 @@ jobs: run: cargo build timeout-minutes: 90 + - name: Build the node individually in release mode + run: cargo --package solochain-template-node --release + timeout-minutes: 90 + - name: Run clippy run: | SKIP_WASM_BUILD=1 cargo clippy --all-targets --locked --workspace --quiet From 4fc7e8aa50de846c59664efd37f0dd76bd2e8a1a Mon Sep 17 00:00:00 2001 From: rzadp Date: Thu, 8 Aug 2024 14:10:44 +0200 Subject: [PATCH 2/3] missing features --- .github/workflows/ci.yml | 2 +- node/Cargo.toml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7013ff..960363a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: timeout-minutes: 90 - name: Build the node individually in release mode - run: cargo --package solochain-template-node --release + run: cargo build --package solochain-template-node --release timeout-minutes: 90 - name: Run clippy diff --git a/node/Cargo.toml b/node/Cargo.toml index 51eb827..8fa4175 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -85,7 +85,10 @@ substrate-build-script-utils.workspace = true substrate-build-script-utils.default-features = true [features] -default = [] +default = ["std"] +std = [ + "solochain-template-runtime/std", +] # Dependencies that are only required if runtime benchmarking should be build. runtime-benchmarks = [ "frame-benchmarking-cli/runtime-benchmarks", From a610bba725592182ad15d6c97c7576bb6883c6b3 Mon Sep 17 00:00:00 2001 From: Przemek Rzad Date: Thu, 8 Aug 2024 17:12:21 +0200 Subject: [PATCH 3/3] Update ci.yml --- .github/workflows/ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 960363a..a050ac2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,10 +54,6 @@ jobs: run: cargo build timeout-minutes: 90 - - name: Build the node individually in release mode - run: cargo build --package solochain-template-node --release - timeout-minutes: 90 - - name: Run clippy run: | SKIP_WASM_BUILD=1 cargo clippy --all-targets --locked --workspace --quiet @@ -72,6 +68,14 @@ jobs: run: SKIP_WASM_BUILD=1 cargo doc --workspace --no-deps timeout-minutes: 15 + # This is mentioned as example in the README: + - name: Build the node individually in release mode + run: | + # Save some space from debug builds + rm -rf ./target + cargo build --package solochain-template-node --release + timeout-minutes: 90 + build-docker: runs-on: ubuntu-latest steps: