Skip to content

Commit

Permalink
Enable parallel build, update dependencies and fix failing libnabo li…
Browse files Browse the repository at this point in the history
…brary import
  • Loading branch information
boxanm committed Dec 9, 2024
1 parent eb776e3 commit a9590df
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ jobs:
ninja-build \
catch \
libomp-dev \
wget
wget \
p7zip-full \
sudo \
cmake
- name: Install MS MPI
if: ${{ runner.os == 'Windows' }}
Expand Down Expand Up @@ -201,11 +204,10 @@ jobs:
cd libnabo
cmake -GNinja \
-DBOOST_ROOT=${{ env.BOOST_INSTALL_PATH }} \
-DCMAKE_INSTALL_PREFIX=${{ env.LIBNABO_INSTALL_PATH }} \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DUSE_OPEN_MP:BOOL=ON \
-S . -B ./build
cmake --build ./build --target install
cmake --build ./build --target install --parallel 4
cd -
rm -r ./libnabo/build
Expand All @@ -214,13 +216,12 @@ jobs:
run: |
cmake \
-DBOOST_ROOT:PATH=${{ env.BOOST_INSTALL_PATH }} \
-DLIBNABO_INSTALL_DIR=${{ env.LIBNABO_INSTALL_PATH }} \
-DBUILD_PYTHON_MODULE:BOOL=ON \
-DUSE_OPEN_MP:BOOL=ON \
-DBoost_USE_STATIC_LIBS:BOOL=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-S . -B ${{ env.BUILD_DIR }}
sudo cmake --build ${{ env.BUILD_DIR }} --target install
sudo cmake --build ${{ env.BUILD_DIR }} --target install --parallel 4
- name: Compile libpointmatcher on Windows
if: runner.os == 'Windows'
Expand All @@ -237,7 +238,7 @@ jobs:
-DUSE_OPEN_MP:BOOL=ON `
-DCMAKE_BUILD_TYPE="RelWithDebInfo" `
-S . -B ${{ env.BUILD_DIR }}
cmake --build ${{ env.BUILD_DIR }} --target install
cmake --build ${{ env.BUILD_DIR }} --target install --parallel 4
- name: Build python wheel
working-directory: ./python
Expand Down

0 comments on commit a9590df

Please sign in to comment.