diff --git a/cumulus/.gitlab-ci.yml b/cumulus/.gitlab-ci.yml index da01099252a55d82228cda1858d1cbce9a733a09..04151c92d4fa7baaa16e42ac64d1b9f9243d873f 100644 --- a/cumulus/.gitlab-ci.yml +++ b/cumulus/.gitlab-ci.yml @@ -114,6 +114,8 @@ check-runtime-benchmarks: script: # Check that the node will compile with `runtime-benchmarks` feature flag. - time cargo check --all --features runtime-benchmarks + # Check that parachain-template will compile with `runtime-benchmarks` feature flag. + - time cargo check -p parachain-template-node --features runtime-benchmarks - sccache -s cargo-check-try-runtime: @@ -122,6 +124,8 @@ cargo-check-try-runtime: script: # Check that the node will compile with `try-runtime` feature flag. - time cargo check --all --features try-runtime + # Check that parachain-template will compile with `try-runtime` feature flag. + - time cargo check -p parachain-template-node --features try-runtime - sccache -s cargo-check-benches: diff --git a/cumulus/parachain-template/node/Cargo.toml b/cumulus/parachain-template/node/Cargo.toml index 10a6e4744a33a79dda174d54453e6258b6b8ac06..bdb7c3782539707073a3b0cdc62aa88c986c6142 100644 --- a/cumulus/parachain-template/node/Cargo.toml +++ b/cumulus/parachain-template/node/Cargo.toml @@ -20,7 +20,10 @@ name = "parachain-collator" path = "src/main.rs" [features] -runtime-benchmarks = ["parachain-template-runtime/runtime-benchmarks"] +runtime-benchmarks = [ + "parachain-template-runtime/runtime-benchmarks", + "polkadot-cli/runtime-benchmarks", +] try-runtime = ["parachain-template-runtime/try-runtime"] [dependencies]