Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix asan ci test #1531

Merged
merged 6 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis/ci-system-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ then
if [ `uname` = "Darwin" ]
then
sysctl -n machdep.cpu.brand_string
brew install coreutils python3 numpy python-setuptools
brew install coreutils python3 numpy python-setuptools jshon
PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"
export PYTHON_BIN_PATH=python3
else
sudo apt-get install -y llvm python3 python3-numpy
sudo apt-get install -y llvm python3 python3-numpy jshon
fi
touch .setup-done
fi
Expand Down
10 changes: 6 additions & 4 deletions api/proxy/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ ROOT=$(dirname $(realpath $0))/../..

set -ex

cargo build --release -p tract-ffi
export TRACT_DYLIB_SEARCH_PATH=$ROOT/target/release
export LD_LIBRARY_PATH=$ROOT/target/release
cargo build --release -p tract-ffi $CARGO_EXTRA
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 test $CARGO_EXTRA
Loading