File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 9090 run : poetry install
9191
9292 - name : Download binary
93- run : curl -sL -o src/viam/rpc/libviam .${{ matrix.ext }} https://github.com/viamrobotics/viam- rust-sdk /releases/latest/download/libviam -${{ matrix.arch }}.${{ matrix.ext }}
93+ run : curl -sL -o src/viam/rpc/libviam_rust_utils .${{ matrix.ext }} https://github.com/viamrobotics/rust-utils /releases/latest/download/libviam_rust_utils -${{ matrix.arch }}.${{ matrix.ext }}
9494
9595 - name : Build
9696 run : poetry build -f wheel
Original file line number Diff line number Diff line change 1- rm -rf src/viam/rpc/libviam .* || true
1+ rm -rf src/viam/rpc/libviam_rust_utils .* || true
22if [ " $( uname) " == " Linux" ]; then
3- curl -sL -o src/viam/rpc/libviam .so https://github.com/viamrobotics/viam- rust-sdk /releases/latest/download/libviam -linux_$( uname -m) .so
3+ curl -sL -o src/viam/rpc/libviam_rust_utils .so https://github.com/viamrobotics/rust-utils /releases/latest/download/libviam_rust_utils -linux_$( uname -m) .so
44elif [ " $( uname) " == " Darwin" ]; then
5- curl -sL -o src/viam/rpc/libviam .dylib https://github.com/viamrobotics/viam- rust-sdk /releases/latest/download/libviam -macosx_$( uname -m) .dylib
5+ curl -sL -o src/viam/rpc/libviam_rust_utils .dylib https://github.com/viamrobotics/rust-utils /releases/latest/download/libviam_rust_utils -macosx_$( uname -m) .dylib
66fi
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ readme = "README.md"
88packages = [
99 { include = " viam" , from = " src" },
1010]
11- include = [" LICENSE" , " src/viam/rpc/libviam .*" ]
11+ include = [" LICENSE" , " src/viam/rpc/libviam_rust_utils .*" ]
1212
1313 [tool .poetry .dependencies ]
1414 python = " >=3.9,<3.11"
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ def __new__(cls):
165165 if not hasattr (cls , "_shared" ):
166166 cls ._shared = super (_Runtime , cls ).__new__ (cls )
167167
168- libname = pathlib .Path (__file__ ).parent .absolute () / f"libviam .{ 'dylib' if sys .platform == 'darwin' else 'so' } "
168+ libname = pathlib .Path (__file__ ).parent .absolute () / f"libviam_rust_utils .{ 'dylib' if sys .platform == 'darwin' else 'so' } "
169169 cls ._shared ._lib = ctypes .CDLL (libname .__str__ ())
170170 cls ._shared ._lib .init_rust_runtime .argtypes = ()
171171 cls ._shared ._lib .init_rust_runtime .restype = ctypes .c_void_p
You can’t perform that action at this time.
0 commit comments