Create a C++ library with python bindings using pybind.
Contains a build pipeline using scikit-build-core within the pyproject.toml description file.
Additionally, contains a Github workflow file to use cibuildwheel to build and deploy the python bindings to pypi.
Ensure the following are installed and set up:
Configuring build
Configuring CMake
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S ./ -B cmake-build-debug Building library
cmake --build cmake-build-debug --target library -j $(nproc)Building python bindings
cmake --build cmake-build-debug --target python -j $(nproc)Installing python package
pip install -e .Local build test
act push -b \
--artifact-server-path=/tmp/artifacts \
--container-options "--privileged";