Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Update build script

Jason Bosco94f6af39ab5e
diff --git a/ci_build_v2.sh b/ci_build_v2.sh
index 44d13dce..f5572494 100644
--- a/ci_build_v2.sh
+++ b/ci_build_v2.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# TYPESENSE_VERSION=nightly TYPESENSE_TARGET=typesense-server|typesense-test bash ci_build.sh
+# TYPESENSE_VERSION=nightly TYPESENSE_TARGET=typesense-server|typesense-test bash ci_build_v2.sh
set -ex
PROJECT_DIR=`dirname $0 | while read a; do cd $a && pwd && break; done`
@@ -19,6 +19,18 @@ if [[ "$@" == *"--with-cuda"* ]]; then
CUDA_FLAGS="--define use_cuda=on --action_env=CUDA_HOME=/usr/local/cuda --action_env=CUDNN_HOME=/usr/local/cuda"
fi
+# First build protobuf
+bazel build @com_google_protobuf//:protobuf_headers
+bazel build @com_google_protobuf//:protobuf_lite
+bazel build @com_google_protobuf//:protobuf
+bazel build @com_google_protobuf//:protoc
+
+# Build whisper
+if [[ "$@" == *"--with-cuda"* ]]; then
+ bazel build @whisper.cpp//:whisper_cuda_shared $CUDA_FLAGS --experimental_cc_shared_library
+fi
+
+# Finally build Typesense
bazel build --verbose_failures --jobs=6 $CUDA_FLAGS \
--define=TYPESENSE_VERSION=\"$TYPESENSE_VERSION\" //:$TYPESENSE_TARGET