From f8aa42e1c5d8406e27247994980b44b0b5f42a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Andr=C3=A9s=20Dorado=20Su=C3=A1rez?= Date: Wed, 29 Jan 2025 18:15:44 -0500 Subject: [PATCH] fix(kreivo-runtime): version bump and fix release command to include specific features --- .github/workflows/release.yml | 4 ++-- Cargo.lock | 9 ++------- chain-spec-generator/Cargo.toml | 9 +-------- justfile | 5 +++++ runtime/kreivo/Cargo.toml | 2 +- runtime/kreivo/src/lib.rs | 2 +- 6 files changed, 12 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a2d7e8f3..8b55c70b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,11 +30,11 @@ jobs: cache-all-crates: true key: build - - name: Release build with runtime-benchmarks + - name: Production build uses: actions-rs/cargo@v1 with: command: build - args: --profile production --locked -p kreivo-runtime + args: --profile production --features ${{ contains(github.ref, '-pre') && 'paseo' || 'try-runtime' }} --locked -p kreivo-runtime - name: Upload runtime to artifacts uses: actions/upload-artifact@v4 diff --git a/Cargo.lock b/Cargo.lock index aac02340..4c1c024b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -866,17 +866,12 @@ dependencies = [ [[package]] name = "chain-spec-generator" -version = "0.15.0" +version = "0.15.1" dependencies = [ "clap", - "cumulus-primitives-core", "kreivo-runtime", "sc-chain-spec", - "sc-network", "serde", - "serde_json", - "sp-core", - "sp-runtime", ] [[package]] @@ -3857,7 +3852,7 @@ dependencies = [ [[package]] name = "kreivo-runtime" -version = "0.15.0" +version = "0.15.1" dependencies = [ "assets-common", "cumulus-pallet-aura-ext", diff --git a/chain-spec-generator/Cargo.toml b/chain-spec-generator/Cargo.toml index 493d2e91..71178d88 100644 --- a/chain-spec-generator/Cargo.toml +++ b/chain-spec-generator/Cargo.toml @@ -6,20 +6,13 @@ homepage.workspace = true license.workspace = true name = "chain-spec-generator" repository.workspace = true -version = "0.15.0" +version = "0.15.1" [dependencies] clap = { workspace = true, features = ["derive"] } -serde_json.workspace = true serde = { workspace = true, features = ["derive"] } - kreivo-runtime = { workspace = true, default-features = true } - -cumulus-primitives-core.workspace = true -sp-core.workspace = true -sp-runtime.workspace = true sc-chain-spec.workspace = true -sc-network.workspace = true [features] runtime-benchmarks = [ diff --git a/justfile b/justfile index 7e7cd05c..b3df53fb 100644 --- a/justfile +++ b/justfile @@ -46,6 +46,9 @@ check: _check_deps build-local features="": cargo build --release --features '{{features}}' +build-benchmarks: + cargo build --release --features 'runtime-benchmarks' -p kreivo-runtime + benchmarks: # TODO: build benchmarks for every pallet that's currently within the runtime as # a dependency @@ -72,6 +75,8 @@ release-artifacts: cp {{ runtime }} release/ cp *.container release +prerelease-tag count="1": + git tag {{ ver }}-pre.{{count}} release-tag: git tag {{ ver }} diff --git a/runtime/kreivo/Cargo.toml b/runtime/kreivo/Cargo.toml index 3f523d7e..efa6f5da 100644 --- a/runtime/kreivo/Cargo.toml +++ b/runtime/kreivo/Cargo.toml @@ -6,7 +6,7 @@ homepage.workspace = true license.workspace = true name = "kreivo-runtime" repository.workspace = true -version = "0.15.0" +version = "0.15.1" [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/runtime/kreivo/src/lib.rs b/runtime/kreivo/src/lib.rs index a42a9174..8c09bf96 100644 --- a/runtime/kreivo/src/lib.rs +++ b/runtime/kreivo/src/lib.rs @@ -126,7 +126,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("kreivo-parachain"), impl_name: create_runtime_str!("kreivo-parachain"), authoring_version: 1, - spec_version: 115, + spec_version: 116, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 10,