Skip to content

Commit

Permalink
move test around, fix release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Apr 17, 2023
1 parent 2b8044d commit 00d2653
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion nnef/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ tract-core = { version = "=0.19.9-pre", path = "../core" }
[dev-dependencies]
temp-dir = "0.1.11"
serde_json.workspace = true
tract-nnef-resources = { version = "=0.19.9-pre", path = "./nnef-resources" }

[features]
default = ["flate2"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion post-release.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

VERSION=$1
CRATES="data linalg core nnef pulse-opl pulse hir tensorflow onnx-opl onnx kaldi libcli cli ffi"
CRATES="data linalg core nnef nnef/nnef-resources pulse-opl pulse hir tensorflow onnx-opl onnx kaldi libcli cli ffi"

if [ `uname` = "Darwin" ]
then
Expand All @@ -22,6 +22,7 @@ do
tomato set package.version $VERSION $f > /dev/null
for dep in $CRATES
do
dep=$(basename $dep)
if tomato get dependencies.tract-$dep.version $f | grep -F . > /dev/null
then
tomato set dependencies.tract-$dep.version "=$VERSION" $f > /dev/null
Expand Down
7 changes: 4 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cargo install tomato-toml

CRATE=$1
VERSION=$2
CRATES="data linalg core nnef pulse-opl pulse hir tensorflow onnx-opl onnx kaldi libcli ffi cli"
CRATES="data linalg core nnef nnef/nnef-resources pulse-opl pulse hir tensorflow onnx-opl onnx kaldi libcli ffi cli"

if [ -z "$VERSION" ]
then
Expand All @@ -29,9 +29,10 @@ tomato set package.version $VERSION $CRATE/Cargo.toml

for manifest in `find * -mindepth 1 -a -name Cargo.toml`
do
if tomato get dependencies.tract-$CRATE.version $manifest | grep -F .
crate=$(basename $CRATE)
if tomato get dependencies.tract-$crate.version $manifest | grep -F .
then
tomato set "dependencies.tract-$CRATE.version" "=$VERSION" $manifest
tomato set "dependencies.tract-$crate.version" "=$VERSION" $manifest
fi
done

Expand Down

0 comments on commit 00d2653

Please sign in to comment.