File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,20 @@ jobs:
3030 sudo apt-get install -y g++ python3-dev
3131 pip install pybind11 pytest
3232
33- - name : Build faiss (as submodule)
33+ - name : Build Faiss (CPU-only)
34+ working-directory : extern/faiss
3435 run : |
35- mkdir -p extern/faiss/build
36- cd extern/faiss/build
37- cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON DCMAKE_POSITION_INDEPENDENT_CODE=ON DCMAKE_INSTALL_PREFIX="$(pwd)/install" DFAISS_ENABLE_PYTHON=OFF -DFAISS_ENABLE_TESTING=OFF DFAISS_ENABLE_GPU=OFF DFAISS_ENABLE_CUDA=OFF
38- make -j$(nproc)
39- make install
36+ cmake -B build -G Ninja \
37+ -DCMAKE_BUILD_TYPE=Release \
38+ -DBUILD_SHARED_LIBS=ON \
39+ -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
40+ -DCMAKE_INSTALL_PREFIX="${PWD}/build/install" \
41+ -DFAISS_ENABLE_PYTHON=OFF \
42+ -DFAISS_ENABLE_TESTING=OFF \
43+ -DFAISS_ENABLE_GPU=OFF \
44+ -DFAISS_ENABLE_CUDA=OFF
45+ cmake --build build -j"$(nproc)"
46+ cmake --install build
4047
4148 - name : Build pybind11 module
4249 run : make
You can’t perform that action at this time.
0 commit comments