diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index da01099252..04151c92d4 100644 --- a/.gitlab-ci.yml +++ b/.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/parachain-template/node/Cargo.toml b/parachain-template/node/Cargo.toml index 10a6e4744a..bdb7c37825 100644 --- a/parachain-template/node/Cargo.toml +++ b/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]