Skip to content

Commit

Permalink
Bump to 0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Garfield committed Feb 25, 2022
1 parent d367101 commit fd5daf0
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 65 deletions.
90 changes: 45 additions & 45 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.3
0.1.4
4 changes: 2 additions & 2 deletions bot/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cronos-bot"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
description = "Worker bot to execute Cronos tasks"
license = "Apache-2.0"
Expand All @@ -14,7 +14,7 @@ keywords = ["solana", "cronos", "program"]

[dependencies]
anchor-client = "0.22.0"
cronos-sdk = { path = "../sdk", version = "0.1.3"}
cronos-sdk = { path = "../sdk", version = "0.1.4" }
dotenv = "0.15.0"
postgres = "0.19.2"
solana-account-decoder = "1.9.9"
Expand Down
6 changes: 3 additions & 3 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cronos-cli"
version = "0.1.3"
version = "0.1.4"
description = "Command line instruction scheduler for Solana"
edition = "2021"
license = "Apache-2.0"
Expand All @@ -14,8 +14,8 @@ keywords = ["solana", "cronos", "cli"]

[dependencies]
anchor-lang = "0.22.0"
clap = { version = "3.0.14", features = ["derive"] }
cronos-sdk = { path = "../sdk", version = "0.1.3" }
clap = { version = "3.1.2", features = ["derive"] }
cronos-sdk = { path = "../sdk", version = "0.1.4" }
serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0.79"
solana-account-decoder = "1.9.5"
Expand Down
2 changes: 1 addition & 1 deletion programs/cronos/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cronos-program"
version = "0.1.3"
version = "0.1.4"
description = "Decentralized task scheduler for Solana"
edition = "2021"
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cronos-sdk"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
description = "Cronos program Rust client"
license = "Apache-2.0"
Expand All @@ -14,7 +14,7 @@ keywords = ["solana", "cronos", "sdk"]

[dependencies]
anchor-client = { version = "0.22.0", features = ["debug"] }
cronos-program = { path = "../programs/cronos", features = ["no-entrypoint"], version = "0.1.3" }
cronos-program = { path = "../programs/cronos", features = ["no-entrypoint"], version = "0.1.4" }
solana-client-helpers = "1.1.0"
solana-program = "1.9.5"
solana-sdk = "1.9.8"
19 changes: 8 additions & 11 deletions version_bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo "Bumping from $(cat VERSION) to ${new_version}"
old_version=$(cat VERSION)

# Build
RUSTFLAGS="--deny warnings" cargo build || (echo "Build failed!" && exit)
RUSTFLAGS="--deny warnings" cargo build || (echo "Build failed" && exit)

# Bump cronos-program
sed -i '' -e '3s/^version = "'${old_version}'"/version = "'${new_version}'"/g' programs/cronos/Cargo.toml
Expand All @@ -23,20 +23,17 @@ sed -i '' -e '3s/^version = "'${old_version}'"/version = "'${new_version}'"/g' b
sed -i '' -e 's/^cronos-sdk =.*/cronos-sdk = { path = "..\/sdk", version = "'${new_version}'" }/g' cli/Cargo.toml
sed -i '' -e '3s/^version = "'${old_version}'"/version = "'${new_version}'"/g' cli/Cargo.toml

# Update version
echo $new_version > VERSION
echo "$(git diff --stat | tail -n1)"

# Cargo publish
cargo publish --allow-dirty --manifest-path programs/cronos/Cargo.toml
cargo publish --allow-dirty --manifest-path sdk/Cargo.toml
cargo publish --allow-dirty --manifest-path bot/Cargo.toml
cargo publish --allow-dirty --manifest-path cli/Cargo.toml
cargo publish --allow-dirty --manifest-path programs/cronos/Cargo.toml || (echo "Failed to publish cronos-program" && exit)
cargo publish --allow-dirty --manifest-path sdk/Cargo.toml || (echo "Failed to publish cronos-sdk" && exit)
cargo publish --allow-dirty --manifest-path bot/Cargo.toml || (echo "Failed to publish cronos-bot" && exit)
cargo publish --allow-dirty --manifest-path cli/Cargo.toml || (echo "Failed to publish cronos-cli" && exit)

# Re-build
cargo build
# Update version
echo $new_version > VERSION

# Git commit
echo "$(git diff --stat | tail -n1)"
git checkout -b release/${new_version}
git add .
git commit -m "Bump to $new_version"
Expand Down

0 comments on commit fd5daf0

Please sign in to comment.