Skip to content

Commit b7e0e5d

Browse files
committed
Release v0.2.0
1 parent 3b30722 commit b7e0e5d

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

Cargo.lock

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

ci/publish.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
# - publish `openvino-sys` (ensuring that it will fit within 10MB!), then publish `openvino`
1212
# - push the commit and tag (this is left for the user)
1313
#
14-
# Also can be run in dry-run mode: `DRY_RUN=1 ci/publish.sh`.
14+
# Also can be run in dry-run mode: `DRY_RUN=1 ci/publish.sh [optional version]`.
1515

1616
set -e
1717
PROJECT_DIR=$(dirname "$0" | xargs dirname)
18+
VERSION=${1:-0}
1819
DRY_RUN=${DRY_RUN:-0}
1920
if [[ "$DRY_RUN" != 0 ]]; then
2021
CARGO_WORKSPACE_OPTIONS="--no-git-commit"
@@ -42,7 +43,11 @@ function publish {
4243
}
4344

4445
# Bump the versions of the Cargo.toml files.
45-
cargo workspaces version patch --force openvino* $CARGO_WORKSPACE_OPTIONS
46+
if [[ "$VERSION" != 0 ]]; then
47+
cargo workspaces version custom $VERSION --force openvino* $CARGO_WORKSPACE_OPTIONS
48+
else
49+
cargo workspaces version patch --force openvino* $CARGO_WORKSPACE_OPTIONS
50+
fi
4651

4752
# Check that the versions of openvino and openvino-sys match.
4853
if [ $(get_version openvino) != $(get_version openvino-sys) ]; then
@@ -56,6 +61,8 @@ fi
5661
VERSION=$(get_version openvino)
5762
sed -i "s/openvino-sys .* version = \"\([0-9.]*\)\".*/openvino-sys = { path = \"..\/openvino-sys\", version = \"$VERSION\" }/g" crates/openvino/Cargo.toml
5863
cargo fetch
64+
65+
# Add a Git commit.
5966
if [[ "$DRY_RUN" == 0 ]]; then
6067
git commit -a -m "Release v$VERSION"
6168
git tag v$VERSION

crates/openvino-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "openvino-sys"
3-
version = "0.1.8"
3+
version = "0.2.0"
44
license = "Apache-2.0"
55
description = "Low-level bindings for OpenVINO (use the `openvino` crate for easier-to-use bindings)."
66
readme = "README.md"

crates/openvino/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "openvino"
3-
version = "0.1.8"
3+
version = "0.2.0"
44
license = "Apache-2.0"
55
description = "High-level bindings for OpenVINO."
66
readme = "README.md"
@@ -13,7 +13,7 @@ exclude = [
1313
]
1414

1515
[dependencies]
16-
openvino-sys = { path = "../openvino-sys", version = "0.1.8" }
16+
openvino-sys = { path = "../openvino-sys", version = "0.2.0" }
1717
thiserror = "1.0.20"
1818

1919
[dev-dependencies]

0 commit comments

Comments
 (0)