Skip to content

Commit

Permalink
discover so build path
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Sep 17, 2024
1 parent f73ec8a commit 2a7044f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/proxy/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2a7044f

Please sign in to comment.