From 01f75342a77bf87800da56e8f1726c645f8022b2 Mon Sep 17 00:00:00 2001 From: kaiserkarel Date: Fri, 14 Jan 2022 12:59:59 +0100 Subject: [PATCH] Add std feature check --- .github/workflows/check.yml | 20 +++++++++++++++++--- Cargo.toml | 3 ++- node/Cargo.toml | 2 ++ 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 91627d05b2a..ccaf9d78a96 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -17,8 +17,8 @@ env: DOCKER_USER_OPTION: '$UID:$GID' jobs: - check: - name: Check + check-benchmarks: + name: Check Benchmarks runs-on: - self-hosted - linux @@ -26,9 +26,23 @@ jobs: - sre steps: - uses: actions/checkout@v2 - - name: Compile Check + - name: Compile Check with WASM run: | /home/runner/.cargo/bin/cargo check --features=runtime-benchmarks --workspace --exclude integration-tests + + check-std: + name: Check STD + runs-on: + - self-hosted + - linux + - x64 + - sre + steps: + - uses: actions/checkout@v2 + - name: Compile check with std + run: | + SKIP_WASM_BUILD=1 /home/runner/.cargo/bin/cargo check --features=std --workspace --exclude integration-tests + linters: name: Linters runs-on: diff --git a/Cargo.toml b/Cargo.toml index c2903bcded0..55ba0eae1ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,8 @@ composable-node = { path = "node", features = [ "composable", "dali" ] } color-eyre = { version = "0.5.11", default-features = false } [features] -runtime-benchmarks= [ "composable-node/runtime-benchmarks" ] +runtime-benchmarks = [ "composable-node/runtime-benchmarks" ] +std = [ "composable-node/std" ] [workspace] members = [ diff --git a/node/Cargo.toml b/node/Cargo.toml index 49f817ef4e7..7ba04523bec 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -95,6 +95,8 @@ runtime-benchmarks = ["picasso-runtime/runtime-benchmarks", "composable-runtime/ ocw = [] dali = ["dali-runtime"] composable = ["composable-runtime"] +std = ["picasso-runtime/std", "composable-runtime/std", "dali-runtime/std"] + [package.metadata.cargo-udeps.ignore] normal = ["pallet-bonded-finance"]