Skip to content

extended build

extended build #8

name: Mt-KaHyPar Python Package
on:
push:
branches-ignore:
- master
jobs:
mt_kahypar_compiler_version_test:
name: Python Package
strategy:
matrix:
os: [ ubuntu-24.04 ]
runs-on: ${{ matrix.os }}
env:
CI_ACTIVE : 1
TBB_INSTALL_DIR: /tmp/tbb_build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install Dependencies
run: |
sudo apt-get install libtbb-dev libhwloc-dev libboost-program-options-dev
python3 -m pip install cibuildwheel>=2.22.0 scikit-build-core>=0.10
- name: Build Python Wheels
env:
CIBW_BUILD: cp3*-manylinux_x86_64
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
rm -rf configure_python
python3 -m cibuildwheel --output-dir wheels
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheels/*.whl
# TODO: tests