Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.4] Setup cargo-release #2138

Merged
merged 2 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

<!-- next-header -->

## [Unreleased]

## [1.4.4]
Expand Down Expand Up @@ -1930,6 +1932,8 @@ Some main points:

All future Changelog entries will reference this base

<!-- next-url -->

[unreleased]: https://github.com/CosmWasm/cosmwasm/compare/v1.4.4...HEAD
[1.4.4]: https://github.com/CosmWasm/cosmwasm/compare/v1.4.3...v1.4.4
[1.4.3]: https://github.com/CosmWasm/cosmwasm/compare/v1.4.2...v1.4.3
Expand Down
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ exclude = ["contracts"]
# Resolver has to be set explicitely in workspaces
# due to https://github.com/rust-lang/cargo/issues/9956
resolver = "2"

[workspace.package]
version = "1.4.4"

[workspace.metadata.release]
shared-version = true
tag-message = "chore: Release cosmwasm v{{version}}"
tag-name = "v{{version}}"
11 changes: 11 additions & 0 deletions devtools/release_checks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

# Move to the workspace root
WORKSPACE_PATH=$(dirname $(cargo locate-project --workspace --message-format=plain))
cd $WORKSPACE_PATH

cargo build

for contract_dir in contracts/*/; do
(cd "$contract_dir" && cargo build)
done
61 changes: 0 additions & 61 deletions devtools/set_version.sh

This file was deleted.

2 changes: 1 addition & 1 deletion packages/check/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cosmwasm-check"
version = "1.4.4"
version.workspace = true
authors = ["Mauro Lacy <mauro@lacy.com.es>"]
edition = "2021"
description = "A CLI tool for verifying CosmWasm smart contracts"
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cosmwasm-crypto"
version = "1.4.4"
version.workspace = true
authors = ["Mauro Lacy <maurolacy@users.noreply.github.com>"]
edition = "2021"
description = "Crypto bindings for cosmwasm contracts"
Expand Down
2 changes: 1 addition & 1 deletion packages/derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cosmwasm-derive"
version = "1.4.4"
version.workspace = true
authors = ["Simon Warta <webmaster128@users.noreply.github.com>"]
edition = "2021"
description = "A package for auto-generated code used for CosmWasm contract development. This is shipped as part of cosmwasm-std. Do not use directly."
Expand Down
2 changes: 1 addition & 1 deletion packages/schema-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cosmwasm-schema-derive"
version = "1.4.4"
version.workspace = true
authors = ["Tomasz Kurcz <tom@confio.gmbh>"]
edition = "2021"
description = "Derive macros for cosmwasm-schema"
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cosmwasm-schema"
version = "1.4.4"
version.workspace = true
authors = ["Simon Warta <webmaster128@users.noreply.github.com>", "Ethan Frey <ethanfrey@users.noreply.github.com>"]
edition = "2021"
description = "A dev-dependency for CosmWasm contracts to generate JSON Schema files."
Expand Down
2 changes: 1 addition & 1 deletion packages/std/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cosmwasm-std"
version = "1.4.4"
version.workspace = true
authors = ["Ethan Frey <ethanfrey@users.noreply.github.com>"]
edition = "2021"
description = "Standard library for Wasm based smart contracts on Cosmos blockchains"
Expand Down
2 changes: 1 addition & 1 deletion packages/storage/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cosmwasm-storage"
version = "1.4.4"
version.workspace = true
authors = ["Ethan Frey <ethanfrey@users.noreply.github.com>"]
edition = "2021"
description = "CosmWasm library with useful helpers for Storage patterns"
Expand Down
14 changes: 13 additions & 1 deletion packages/vm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
[package]
name = "cosmwasm-vm"
version = "1.4.4"
version.workspace = true
authors = ["Ethan Frey <ethanfrey@users.noreply.github.com>"]
edition = "2021"
description = "VM bindings to run cosmwams contracts"
repository = "https://github.com/CosmWasm/cosmwasm/tree/main/packages/vm"
license = "Apache-2.0"

[package.metadata.release]
pre-release-hook = [
"../../devtools/release_checks.sh"
]
pre-release-replacements = [
{ file="../../CHANGELOG.md", search="## \\[Unreleased\\]", replace="## [{{version}}] - {{date}}", exactly=1 },
{ file="../../CHANGELOG.md", search="(U|u)nreleased", replace="{{version}}" },
{ file="../../CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n\n## [Unreleased]", exactly=1 },
{ file="../../CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1 },
{ file="../../CHANGELOG.md", search="<!-- next-url -->\n", replace="<!-- next-url -->\n\n[unreleased]: https://github.com/CosmWasm/cosmwasm/compare/{{tag_name}}...HEAD", exactly=1 },
]

[features]
default = ["staking", "iterator"]
# backtraces provides much better context at runtime errors (in non-wasm code)
Expand Down
Loading