Skip to content

Commit 3e0d400

Browse files
committed
Add release binary (#161)
1 parent 9c4fa2a commit 3e0d400

File tree

6 files changed

+56
-28
lines changed

6 files changed

+56
-28
lines changed

Cargo.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ incremental = false
2828
codegen-units = 1
2929

3030
[workspace.package]
31-
version = "0.0.2"
31+
version = "0.0.4"
3232
authors = ["Jito Network Maintainers <[email protected]>"]
3333
repository = "https://github.com/jito-foundation/restaking"
3434
homepage = "https://jito.network/"
@@ -49,17 +49,17 @@ clap-markdown = { version = "0.1.4" }
4949
const_str_to_pubkey = "0.1.1"
5050
envfile = "0.2.1"
5151
env_logger = "0.10.2"
52-
jito-bytemuck = { path = "bytemuck", version = "=0.0.2" }
53-
jito-account-traits-derive = { path = "account_traits_derive", version = "=0.0.2" }
54-
jito-jsm-core = { path = "core", version = "=0.0.2" }
55-
jito-restaking-client = { path = "clients/rust/restaking_client", version = "=0.0.2" }
56-
jito-restaking-core = { path = "restaking_core", version = "=0.0.2" }
57-
jito-restaking-program = { path = "restaking_program", version = "=0.0.2" }
58-
jito-restaking-sdk = { path = "restaking_sdk", version = "=0.0.2" }
59-
jito-vault-client = { path = "clients/rust/vault_client", version = "=0.0.2" }
60-
jito-vault-core = { path = "vault_core", version = "=0.0.2" }
61-
jito-vault-program = { path = "vault_program", version = "=0.0.2" }
62-
jito-vault-sdk = { path = "vault_sdk", version = "=0.0.2" }
52+
jito-bytemuck = { path = "bytemuck", version = "=0.0.4" }
53+
jito-account-traits-derive = { path = "account_traits_derive", version = "=0.0.4" }
54+
jito-jsm-core = { path = "core", version = "=0.0.4" }
55+
jito-restaking-client = { path = "clients/rust/restaking_client", version = "=0.0.4" }
56+
jito-restaking-core = { path = "restaking_core", version = "=0.0.4" }
57+
jito-restaking-program = { path = "restaking_program", version = "=0.0.4" }
58+
jito-restaking-sdk = { path = "restaking_sdk", version = "=0.0.4" }
59+
jito-vault-client = { path = "clients/rust/vault_client", version = "=0.0.4" }
60+
jito-vault-core = { path = "vault_core", version = "=0.0.4" }
61+
jito-vault-program = { path = "vault_program", version = "=0.0.4" }
62+
jito-vault-sdk = { path = "vault_sdk", version = "=0.0.4" }
6363
log = "0.4.22"
6464
matches = "0.1.10"
6565
num-derive = "0.4.2"

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ cargo nextest run
7070
cargo-build-sbf && SBF_OUT_DIR=$(pwd)/target/sbf-solana-solana/release cargo nextest run --all-features
7171
```
7272

73+
## Releasing
74+
75+
```bash
76+
./release
77+
```
78+
7379
## Contributing
7480

7581
Contributions are welcome! Please feel free to submit a Pull Request.

idl/jito_restaking.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.0.2",
2+
"version": "0.0.4",
33
"name": "jito_restaking",
44
"instructions": [
55
{

idl/jito_vault.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.0.2",
2+
"version": "0.0.4",
33
"name": "jito_vault",
44
"instructions": [
55
{

release

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env sh
2+
set -euo pipefail
3+
4+
cargo set-version --bump patch
5+
6+
# get the version
7+
# xargs strips quotations
8+
VERSION=$(cargo metadata --format-version=1 --no-deps | jq '.packages[0].version' | xargs)
9+
echo "Bumped workspace version to $VERSION"
10+
11+
# Ensure auto-generated code gets new version
12+
echo "Autogenerating new code"
13+
cargo b && \
14+
./target/debug/jito-restaking-cli --markdown-help > ./docs/_tools/00_cli.md && \
15+
./target/debug/jito-shank-cli && \
16+
yarn generate-clients && \
17+
cargo b
18+
git add Cargo.lock Cargo.toml idl
19+
git commit -m "Bump version to $VERSION"
20+
git tag -a "v$VERSION" -m "v$VERSION"
21+
git push origin master
22+
git push origin tags/v"$VERSION"

0 commit comments

Comments
 (0)