Skip to content

Commit 36502b6

Browse files
authored
Add svs submodule (#621)
* Add svs submodule * use recursive checkouts
1 parent 50cbfb7 commit 36502b6

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

.github/workflows/benchmark-runner.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
uses: actions/checkout@v4
5050
with:
5151
ref: ${{ github.event.number && format('refs/pull/{0}/merge', github.event.number) || github.head_ref }}
52+
submodules: recursive
5253
- name: Print runner info
5354
run: |
5455
printf "Runner lscpu:\n$(lscpu)\n"

.github/workflows/coverage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
uses: actions/checkout@v4
3737
with:
3838
ref: ${{ github.event.number && format('refs/pull/{0}/merge', github.event.number) || github.head_ref }}
39+
submodules: recursive
3940
- name: install dependencies
4041
run: sudo .install/install_script.sh
4142
- name: run codecov

.github/workflows/event-pull_request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
uses: actions/checkout@v4
1818
with:
1919
ref: ${{ github.event.number && format('refs/pull/{0}/merge', github.event.number) || github.head_ref }}
20+
submodules: recursive
2021
- name: setup python
2122
uses: actions/setup-python@v5
2223
with:

.github/workflows/task-unit-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
uses: actions/checkout@v4
3636
with:
3737
ref: ${{ github.event.number && format('refs/pull/{0}/merge', github.event.number) || github.head_ref }}
38+
submodules: recursive
3839
- name: install dependencies
3940
run: .install/install_script.sh ${{ !inputs.container && 'sudo' || '' }}
4041
- name: Set Artifact Name

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
/build/
77
/dist/
88
/venv/
9-
/deps/
109
/1/
1110
**/build/
1211

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "deps/ScalableVectorSearch"]
2+
path = deps/ScalableVectorSearch
3+
url = https://github.com/intel/ScalableVectorSearch.git

CMakeLists.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ cmake_policy(SET CMP0077 NEW)
44
set(CMAKE_CXX_STANDARD 20)
55
option(VECSIM_BUILD_TESTS "Build tests" ON)
66

7-
# option(VECSIM_STATIC "Build as static library" OFF)
87
get_filename_component(root ${CMAKE_CURRENT_LIST_DIR} ABSOLUTE)
98
message("# VectorSimilarity root: " ${root})
109
get_filename_component(binroot ${CMAKE_CURRENT_BINARY_DIR} ABSOLUTE)
1110
message("# VectorSimilarity binroot: " ${binroot})
12-
message("# VectorSimilarity static build: " ${VECSIM_STATIC})
1311

1412
if(USE_COVERAGE)
1513
if(NOT CMAKE_BUILD_TYPE STREQUAL "DEBUG")
@@ -73,13 +71,9 @@ if(VECSIM_BUILD_TESTS)
7371
endif()
7472
endif()
7573

74+
add_subdirectory(deps/ScalableVectorSearch)
7675
add_subdirectory(src/VecSim)
7776

7877
# Needed for build as ExternalProject (like RediSearch does)
7978
install(TARGETS VectorSimilarity DESTINATION ${CMAKE_INSTALL_PREFIX})
8079
install(TARGETS VectorSimilaritySpaces DESTINATION ${CMAKE_INSTALL_PREFIX})
81-
82-
# if(NOT VECSIM_STATIC)
83-
# set_target_properties(VectorSimilarity PROPERTIES PREFIX "lib")
84-
# set_target_properties(VectorSimilarity PROPERTIES SUFFIX ".so")
85-
# endif()

deps/ScalableVectorSearch

Submodule ScalableVectorSearch added at 1e59bf6

0 commit comments

Comments
 (0)