enhance: [skip e2e] use disk ann when os is ubuntu, rocky or amazon (#34244)

pr: https://github.com/milvus-io/milvus/pull/34236

Signed-off-by: Liang Huang <sammy.huang@zilliz.com>
pull/34265/head
sammy.huang 2024-06-27 20:50:13 +08:00 committed by GitHub
parent 1c6e850f73
commit 7b4c1a0a96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -222,8 +222,12 @@ source ${ROOT_DIR}/scripts/setenv.sh
CMAKE_GENERATOR="Unix Makefiles"
# UBUNTU system build diskann index
if [ "$OS_NAME" == "ubuntu20.04" ] ; then
# build with diskann index if OS is ubuntu or rocky or amzn
if [ -f /etc/os-release ]; then
. /etc/os-release
OS=$ID
fi
if [ "$OS" = "ubuntu" ] || [ "$OS" = "rocky" ] || [ "$OS" = "amzn" ]; then
BUILD_DISK_ANN=ON
fi