Skip to content

allow disabling hwloc #26

allow disabling hwloc

allow disabling hwloc #26

name: Mt-KaHyPar Python Package
on:
push:
branches-ignore:
- master
jobs:
package_linux:
name: Python Package Linux
runs-on: ubuntu-24.04
env:
CI_ACTIVE : 1
TBB_INSTALL_DIR: /tmp/tbb_build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Install Dependencies
run: |
sudo apt-get install libtbb-dev libhwloc-dev libboost-program-options-dev
python3 -m pip install cibuildwheel>=2.22.0
- name: Build Python Wheels
env:
CIBW_ARCHS_LINUX: x86_64 aarch64
CIBW_BUILD: cp3*-manylinux*
run: |
# run cmake to create pyproject.toml from pyproject.toml.in
cmake -B configure_python --preset=minimal -DKAHYPAR_SETUP_PYTHON=On -DKAHYPAR_TBB_DIR=$TBB_INSTALL_DIR -DKAHYPAR_DISABLE_HWLOC=Off
rm -rf configure_python
python3 -m cibuildwheel --output-dir wheels
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-ubuntu-24.04
path: ./wheels/*.whl
package_macos:
name: Python Package MacOS
runs-on: macos-latest
env:
CI_ACTIVE : 1
TBB_INSTALL_DIR: /tmp/tbb_build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install Dependencies
run: |
brew install tbb boost pipx
- name: Build Python Wheels
env:
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_BUILD: cp3*-macos*
# TBB doesn't compile on older MacOS than 10.13
MACOSX_DEPLOYMENT_TARGET: 10.13
run: |
# run cmake to create pyproject.toml from pyproject.toml.in
cmake -B configure_python --preset=minimal -DKAHYPAR_SETUP_PYTHON=On -DKAHYPAR_TBB_DIR=$TBB_INSTALL_DIR -DKAHYPAR_DISABLE_HWLOC=On
rm -rf configure_python
pipx run cibuildwheel --output-dir wheels
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-macos
path: ./wheels/*.whl