Skip to content

Commit

Permalink
Check including wasm build (#489)
Browse files Browse the repository at this point in the history
* Check including wasm build

* Add std feature check
  • Loading branch information
KaiserKarel authored and Dominik Roth committed Jan 17, 2022
1 parent c3b0874 commit d9d9297
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,32 @@ env:
DOCKER_USER_OPTION: '$UID:$GID'

jobs:
check:
name: Check
check-benchmarks:
name: Check Benchmarks
runs-on:
- self-hosted
- linux
- x64
- sre
steps:
- uses: actions/checkout@v2
- run: |
SKIP_WASM_BUILD=1 /home/runner/.cargo/bin/cargo check --all --benches
- name: Benchmark
- name: Compile Check with WASM
run: |
SKIP_WASM_BUILD=1 /home/runner/.cargo/bin/cargo check --features=runtime-benchmarks --workspace --release --exclude integration-tests
- name: Picasso
/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: |
/home/runner/.cargo/bin/cargo build --release -p picasso-runtime
SKIP_WASM_BUILD=1 /home/runner/.cargo/bin/cargo check --features=std --workspace --exclude integration-tests
linters:
name: Linters
runs-on:
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 2 additions & 0 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit d9d9297

Please sign in to comment.