From 2a7044fa9d12dfb2a140957dd2fab423ba4a2306 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Tue, 17 Sep 2024 09:57:22 +0200 Subject: [PATCH] discover so build path --- api/proxy/ci.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/proxy/ci.sh b/api/proxy/ci.sh index c88f48d651..507e856d51 100755 --- a/api/proxy/ci.sh +++ b/api/proxy/ci.sh @@ -5,8 +5,10 @@ ROOT=$(dirname $(realpath $0))/../.. set -ex cargo build --release -p tract-ffi $CARGO_EXTRA -export TRACT_DYLIB_SEARCH_PATH=$ROOT/target/release -export LD_LIBRARY_PATH=$ROOT/target/release +SO=$(cargo build --message-format=json --release -p tract-ffi $CARGO_EXTRA | grep cdylib | jshon -e filenames -e 0 -u) +SO_PATH=$(dirname $SO) +export TRACT_DYLIB_SEARCH_PATH=$SO_PATH +export LD_LIBRARY_PATH=$SO_PATH cd $(dirname $(realpath $0)) cargo test $CARGO_EXTRA