Skip to content

Commit

Permalink
fix(kreivo-runtime): version bump and fix release command to include …
Browse files Browse the repository at this point in the history
…specific features
  • Loading branch information
pandres95 committed Jan 29, 2025
1 parent 887798f commit f8aa42e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 2 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions chain-spec-generator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

Expand Down
2 changes: 1 addition & 1 deletion runtime/kreivo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion runtime/kreivo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f8aa42e

Please sign in to comment.