Skip to content

Commit f886121

Browse files
committed
fix: CI build faiss
1 parent b73e1a7 commit f886121

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Checkout code
1515
uses: actions/checkout@v3
1616
with:
17-
submodules: recursive # <-- 這行會讓它用 HTTPS 把 extern/faiss 拉下來
17+
submodules: recursive
1818

1919
- name: Init submodules
2020
run: git submodule update --init --recursive
@@ -34,7 +34,7 @@ jobs:
3434
run: |
3535
mkdir -p extern/faiss/build
3636
cd extern/faiss/build
37-
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DFAISS_ENABLE_PYTHON=OFF -DFAISS_ENABLE_TESTING=OFF -DCMAKE_INSTALL_PREFIX=$(pwd)/install
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
3838
make -j$(nproc)
3939
make install
4040

0 commit comments

Comments
 (0)