From 4b8e6a141512ba7dba883774fa1cb4286efa6245 Mon Sep 17 00:00:00 2001 From: Nick Garfield Date: Tue, 24 May 2022 15:21:48 -0500 Subject: [PATCH] Bump version from 0.1.8 to 0.2.0-alpha1 --- .github/workflows/release.yaml | 2 ++ Cargo.lock | 35 ++++++++++++---------------------- VERSION | 2 +- cli/Cargo.toml | 4 ++-- cron/Cargo.toml | 2 +- metrics/Cargo.toml | 4 ++-- plugin/Cargo.toml | 4 ++-- programs/health/Cargo.toml | 2 +- programs/network/Cargo.toml | 6 +++--- programs/pool/Cargo.toml | 2 +- programs/scheduler/Cargo.toml | 6 +++--- scripts/bump-version.sh | 16 ++++++++++++---- sdk/Cargo.toml | 10 +++++----- stress/Cargo.toml | 6 +++--- 14 files changed, 50 insertions(+), 51 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ac34b52a4..9a2663308 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,3 +1,5 @@ +name: Release + on: push: tags: diff --git a/Cargo.lock b/Cargo.lock index 73efca4b2..925a1ebac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -764,7 +764,7 @@ dependencies = [ [[package]] name = "cronos-cli" -version = "0.1.8" +version = "0.2.0-alpha1" dependencies = [ "clap 3.1.12", "cronos-sdk", @@ -783,7 +783,7 @@ dependencies = [ [[package]] name = "cronos-cron" -version = "0.1.8" +version = "0.2.0-alpha1" dependencies = [ "chrono", "chrono-tz", @@ -791,27 +791,16 @@ dependencies = [ "once_cell", ] -[[package]] -name = "cronos-cron" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5705f0b5af06899f76cd800265a5541739743d92b6ded2b39349965aaaa741f" -dependencies = [ - "chrono", - "nom", - "once_cell", -] - [[package]] name = "cronos-health" -version = "0.1.8" +version = "0.2.0-alpha1" dependencies = [ "anchor-lang", ] [[package]] name = "cronos-metrics" -version = "0.1.8" +version = "0.2.0-alpha1" dependencies = [ "chrono", "cronos-sdk", @@ -826,7 +815,7 @@ dependencies = [ [[package]] name = "cronos-network" -version = "0.1.8" +version = "0.2.0-alpha1" dependencies = [ "anchor-lang", "anchor-spl", @@ -836,24 +825,24 @@ dependencies = [ [[package]] name = "cronos-pool" -version = "0.1.8" +version = "0.2.0-alpha1" dependencies = [ "anchor-lang", ] [[package]] name = "cronos-scheduler" -version = "0.1.8" +version = "0.2.0-alpha1" dependencies = [ "anchor-lang", "chrono", - "cronos-cron 0.1.8", + "cronos-cron", "cronos-pool", ] [[package]] name = "cronos-sdk" -version = "0.1.8" +version = "0.2.0-alpha1" dependencies = [ "anchor-lang", "anchor-spl", @@ -869,12 +858,12 @@ dependencies = [ [[package]] name = "cronos-stress" -version = "0.1.8" +version = "0.2.0-alpha1" dependencies = [ "base64 0.13.0", "chrono", "clap 3.1.12", - "cronos-cron 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", + "cronos-cron", "cronos-sdk", "serde", "serde_json", @@ -888,7 +877,7 @@ dependencies = [ [[package]] name = "cronos_plugin" -version = "0.1.8" +version = "0.2.0-alpha1" dependencies = [ "bincode", "bs58 0.4.0", diff --git a/VERSION b/VERSION index 699c6c6d4..519f785c6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.8 +0.2.0-alpha1 diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 10e58444a..083a81210 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cronos-cli" -version = "0.1.8" +version = "0.2.0-alpha1" description = "Command line instruction scheduler for Solana" edition = "2021" license = "GNU AGPLv3" @@ -14,7 +14,7 @@ keywords = ["solana", "cronos", "cli"] [dependencies] clap = { version = "3.1.2", features = ["derive"] } -cronos-sdk = { path = "../sdk", features = ["client"], version = "0.1.8" } +cronos-sdk = { path = "../sdk", features = ["client"], version = "0.2.0-alpha1" } serde = { version = "1.0.136", features = ["derive"] } serde_json = "1.0.79" solana-account-decoder = "1.10.8" diff --git a/cron/Cargo.toml b/cron/Cargo.toml index 3da318f83..3ebba4255 100644 --- a/cron/Cargo.toml +++ b/cron/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cronos-cron" -version = "0.1.8" +version = "0.2.0-alpha1" description = "A cron expression parser that's safe to use in the Solana runtime" edition = "2021" license = "GNU AGPLv3" diff --git a/metrics/Cargo.toml b/metrics/Cargo.toml index e0022a7f1..e38959d4b 100644 --- a/metrics/Cargo.toml +++ b/metrics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cronos-metrics" -version = "0.1.8" +version = "0.2.0-alpha1" description = "Performance monitoring for Cronos clusters" edition = "2021" license = "GNU AGPLv3" @@ -12,7 +12,7 @@ keywords = ["solana"] [dependencies] chrono = "0.4.19" -cronos-sdk = { path = "../sdk", features = ["client"], version = "0.1.8" } +cronos-sdk = { path = "../sdk", features = ["client"], version = "0.2.0-alpha1" } dotenv = "0.15.0" elasticsearch = "7.14.0-alpha.1" serde_json = "~1" diff --git a/plugin/Cargo.toml b/plugin/Cargo.toml index 59261cc9e..5e4357c57 100644 --- a/plugin/Cargo.toml +++ b/plugin/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cronos_plugin" -version = "0.1.8" +version = "0.2.0-alpha1" edition = "2021" description = "Cronos plugin for Solana validators" license = "GNU AGPLv3" @@ -16,7 +16,7 @@ crate-type = ["cdylib", "rlib"] [dependencies] bincode = "1.3.3" bs58 = "0.4.0" -cronos-sdk = { path = "../sdk", features = ["client"], version = "0.1.8" } +cronos-sdk = { path = "../sdk", features = ["client"], version = "0.2.0-alpha1" } log = "0.4" prost = "0.10.0" serde = { version = "1.0", features = ["derive"] } diff --git a/programs/health/Cargo.toml b/programs/health/Cargo.toml index f1dbbdaa4..b801b5726 100644 --- a/programs/health/Cargo.toml +++ b/programs/health/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cronos-health" -version = "0.1.8" +version = "0.2.0-alpha1" description = "Cronos health protocol" edition = "2021" license = "GNU AGPLv3" diff --git a/programs/network/Cargo.toml b/programs/network/Cargo.toml index ec956d4c6..cd604a0b1 100644 --- a/programs/network/Cargo.toml +++ b/programs/network/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cronos-network" -version = "0.1.8" +version = "0.2.0-alpha1" description = "Cronos networking protocol" edition = "2021" license = "GNU AGPLv3" @@ -24,5 +24,5 @@ default = [] [dependencies] anchor-lang = { git = "https://github.com/cronos-so/anchor", branch = "v0.24.2-solana.1.10.8" } anchor-spl = { features = ["mint", "token"], git = "https://github.com/cronos-so/anchor", branch = "v0.24.2-solana.1.10.8" } -cronos-pool = { path = "../pool", features = ["cpi"], version = "0.1.8" } -cronos-scheduler = { path = "../scheduler", features = ["cpi"], version = "0.1.8" } +cronos-pool = { path = "../pool", features = ["cpi"], version = "0.2.0-alpha1" } +cronos-scheduler = { path = "../scheduler", features = ["cpi"], version = "0.2.0-alpha1" } diff --git a/programs/pool/Cargo.toml b/programs/pool/Cargo.toml index ceffbfa6f..0e51529ce 100644 --- a/programs/pool/Cargo.toml +++ b/programs/pool/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cronos-pool" -version = "0.1.8" +version = "0.2.0-alpha1" description = "Cronos pool protocol" edition = "2021" license = "GNU AGPLv3" diff --git a/programs/scheduler/Cargo.toml b/programs/scheduler/Cargo.toml index 60e1efa02..ce86d1e59 100644 --- a/programs/scheduler/Cargo.toml +++ b/programs/scheduler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cronos-scheduler" -version = "0.1.8" +version = "0.2.0-alpha1" description = "Cronos scheduling protocol" edition = "2021" license = "GNU AGPLv3" @@ -24,5 +24,5 @@ default = [] [dependencies] anchor-lang = { git = "https://github.com/cronos-so/anchor", branch = "v0.24.2-solana.1.10.8" } chrono = { version = "0.4.19", default-features = false, features = ["alloc"] } -cronos-cron = { path = "../../cron", version = "0.1.8" } -cronos-pool = { path = "../pool", features = ["cpi"], version = "0.1.8" } +cronos-cron = { path = "../../cron", version = "0.2.0-alpha1" } +cronos-pool = { path = "../pool", features = ["cpi"], version = "0.2.0-alpha1" } diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh index 1d45be67e..9a658f1ed 100755 --- a/scripts/bump-version.sh +++ b/scripts/bump-version.sh @@ -19,6 +19,13 @@ sed -i '' -e '3s/^version = "'${current_version}'"/version = "'${new_version}'"/ sed -i '' -e '3s/^version = "'${current_version}'"/version = "'${new_version}'"/g' programs/pool/Cargo.toml sed -i '' -e '3s/^version = "'${current_version}'"/version = "'${new_version}'"/g' programs/scheduler/Cargo.toml +# Bump inter-program dependencies +sed -i '' -e 's/^cronos-pool =.*/cronos-pool = { path = "..\/programs\/pool", features = ["cpi"], version = "'${new_version}'" }/g' programs/network/Cargo.toml +sed -i '' -e 's/^cronos-scheduler =.*/cronos-scheduler = { path = "..\/programs\/scheduler", features = ["cpi"], version = "'${new_version}'" }/g' programs/network/Cargo.toml +sed -i '' -e 's/^cronos-cron =.*/cronos-cron = { path = "..\/..\/cron", version = "'${new_version}'" }/g' programs/scheduler/Cargo.toml +sed -i '' -e 's/^cronos-pool =.*/cronos-pool = { path = "..\/programs\/pool", features = ["cpi"], version = "'${new_version}'" }/g' programs/scheduler/Cargo.toml + + # Bump cronos-sdk sed -i '' -e 's/^cronos-health =.*/cronos-health = { path = "..\/programs\/health", features = ["no-entrypoint"], version = "'${new_version}'" }/g' sdk/Cargo.toml sed -i '' -e 's/^cronos-network =.*/cronos-network = { path = "..\/programs\/network", features = ["no-entrypoint"], version = "'${new_version}'" }/g' sdk/Cargo.toml @@ -27,19 +34,20 @@ sed -i '' -e 's/^cronos-scheduler =.*/cronos-scheduler = { path = "..\/programs\ sed -i '' -e '3s/^version = "'${current_version}'"/version = "'${new_version}'"/g' sdk/Cargo.toml # Bump cronos-cli -sed -i '' -e 's/^cronos-sdk =.*/cronos-sdk = { path = "..\/sdk", version = "'${new_version}'" }/g' cli/Cargo.toml +sed -i '' -e 's/^cronos-sdk =.*/cronos-sdk = { path = "..\/sdk", features = ["client"], version = "'${new_version}'" }/g' cli/Cargo.toml sed -i '' -e '3s/^version = "'${current_version}'"/version = "'${new_version}'"/g' cli/Cargo.toml # Bump cronos-metrics -sed -i '' -e 's/^cronos-sdk =.*/cronos-sdk = { path = "..\/sdk", version = "'${new_version}'" }/g' metrics/Cargo.toml +sed -i '' -e 's/^cronos-sdk =.*/cronos-sdk = { path = "..\/sdk", features = ["client"], version = "'${new_version}'" }/g' metrics/Cargo.toml sed -i '' -e '3s/^version = "'${current_version}'"/version = "'${new_version}'"/g' metrics/Cargo.toml # Bump cronos-plugin -sed -i '' -e 's/^cronos-sdk =.*/cronos-sdk = { path = "..\/sdk", version = "'${new_version}'" }/g' plugin/Cargo.toml +sed -i '' -e 's/^cronos-sdk =.*/cronos-sdk = { path = "..\/sdk", features = ["client"], version = "'${new_version}'" }/g' plugin/Cargo.toml sed -i '' -e '3s/^version = "'${current_version}'"/version = "'${new_version}'"/g' plugin/Cargo.toml # Bump cronos-stress -sed -i '' -e 's/^cronos-sdk =.*/cronos-sdk = { path = "..\/sdk", version = "'${new_version}'" }/g' stress/Cargo.toml +sed -i '' -e 's/^cronos-sdk =.*/cronos-sdk = { path = "..\/sdk", features = ["client"], version = "'${new_version}'" }/g' stress/Cargo.toml +sed -i '' -e 's/^cronos-cron =.*/cronos-cron = { path = "..\/cron", version = "'${new_version}'" }/g' stress/Cargo.toml sed -i '' -e '3s/^version = "'${current_version}'"/version = "'${new_version}'"/g' stress/Cargo.toml # Update version diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index b30ed874f..c4ab7fac8 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cronos-sdk" -version = "0.1.8" +version = "0.2.0-alpha1" edition = "2021" description = "Cronos SDK" license = "GNU AGPLv3" @@ -18,10 +18,10 @@ name = "cronos_sdk" anchor-lang = { git = "https://github.com/cronos-so/anchor", branch = "v0.24.2-solana.1.10.8" } anchor-spl = { features = ["mint", "token"], git = "https://github.com/cronos-so/anchor", branch = "v0.24.2-solana.1.10.8" } bincode = "1.3.3" -cronos-health = { path = "../programs/health", features = ["no-entrypoint"], version = "0.1.8" } -cronos-network = { path = "../programs/network", features = ["no-entrypoint"], version = "0.1.8" } -cronos-pool = { path = "../programs/pool", features = ["no-entrypoint"], version = "0.1.8" } -cronos-scheduler = { path = "../programs/scheduler", features = ["no-entrypoint"], version = "0.1.8" } +cronos-health = { path = "../programs/health", features = ["no-entrypoint"], version = "0.2.0-alpha1" } +cronos-network = { path = "../programs/network", features = ["no-entrypoint"], version = "0.2.0-alpha1" } +cronos-pool = { path = "../programs/pool", features = ["no-entrypoint"], version = "0.2.0-alpha1" } +cronos-scheduler = { path = "../programs/scheduler", features = ["no-entrypoint"], version = "0.2.0-alpha1" } solana-client = "1.10.8" solana-sdk = "1.10.8" thiserror = "1.0.31" diff --git a/stress/Cargo.toml b/stress/Cargo.toml index 0caa8c59b..611e7bce7 100644 --- a/stress/Cargo.toml +++ b/stress/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cronos-stress" -version = "0.1.8" +version = "0.2.0-alpha1" description = "A stress testing tool for Cronos" edition = "2021" license = "GNU AGPLv3" @@ -14,8 +14,8 @@ keywords = ["solana", "cronos", "program"] base64 = "0.13.0" chrono = { version = "0.4.19", default-features = false, features = ["alloc"] } clap = { version = "3.1.2", features = ["derive"] } -cronos-cron = "0.1.8" -cronos-sdk = { path = "../sdk", features = ["client"], version = "0.1.8" } +cronos-cron = { path = "../cron", version = "0.2.0-alpha1" } +cronos-sdk = { path = "../sdk", features = ["client"], version = "0.2.0-alpha1" } serde_json = "1.0.79" serde = { version = "1.0.136", features = ["derive"] } solana-clap-utils = "1.10.8"