Skip to content

Commit 74cc46d

Browse files
committed
fix: CI build faiss
1 parent 7697ebd commit 74cc46d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,22 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v4
1919
with:
20-
python-version: '3.11'
20+
python-version: '3.12'
2121

2222
- name: Install build tools
2323
run: |
2424
sudo apt-get update
2525
sudo apt-get install -y g++ python3-dev
2626
pip install pybind11 pytest
2727
28+
- name: Build faiss (as submodule)
29+
run: |
30+
mkdir -p extern/faiss/build
31+
cd extern/faiss/build
32+
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DFAISS_ENABLE_PYTHON=OFF -DFAISS_ENABLE_TESTING=OFF -DCMAKE_INSTALL_PREFIX=$(pwd)/install
33+
make -j$(nproc)
34+
make install
35+
2836
- name: Build pybind11 module
2937
run: make
3038

0 commit comments

Comments
 (0)