Skip to content

Commit

Permalink
Build nanobind bindings in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Max Lantas <[email protected]>
  • Loading branch information
mnxn committed Sep 27, 2024
1 parent ebffce5 commit 4ec3339
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,36 @@ jobs:
pybind11: 'ON'
python-desc: python3.11
vfx-cy: 2024

# -------------------------------------------------------------------
# nanobind and python together
# -------------------------------------------------------------------
- build: 10
build-type: Release
build-shared: 'ON'
cxx-standard: 17
cxx-compiler: g++
cc-compiler: gcc
compiler-desc: gcc11.2.1
python: 'ON'
nanobind: 'ON'
python-desc: python3.11
vfx-cy: 2024

# -------------------------------------------------------------------
# nanobind w/o python
# -------------------------------------------------------------------
- build: 11
build-type: Release
build-shared: 'ON'
cxx-standard: 17
cxx-compiler: g++
cc-compiler: gcc
compiler-desc: gcc11.2.1
python: 'OFF'
nanobind: 'ON'
python-desc: python3.11
vfx-cy: 2024
env:
CXX: ${{ matrix.cxx-compiler }}
CC: ${{ matrix.cc-compiler }}
Expand All @@ -241,6 +271,7 @@ jobs:
-DBUILD_SHARED_LIBS=${{ matrix.build-shared }} \
-DPYTHON=${{ matrix.python }} \
-DPYBIND11=${{ matrix.pybind11 }} \
-DNANOBIND=${{ matrix.nanobind }} \
-DUSE_PYTHON2=${{ matrix.use-python2 }}
working-directory: _build
- name: Build
Expand Down Expand Up @@ -289,6 +320,10 @@ jobs:
export PYTHONPATH=`find ../_install -name 'pybindimath.*.so' | xargs dirname`
python -c "import pybindimath;print(pybindimath.__version__)"
fi
if [[ "${{ matrix.nanobind }}" == "ON" ]]; then
export PYTHONPATH=`find ../_install -name 'nanobindimath.*.so' | xargs dirname`
python -c "import nanobindimath;print(nanobindimath.__version__)"
fi
shell: bash
working-directory: _build
- name: Test
Expand Down

0 comments on commit 4ec3339

Please sign in to comment.