CI simplification #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ] | |
# { os: macos-latest, cpp: clang++, cc: clang, install_cmd: clang } ] | |
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: | | |
python3 -m pip install cibuildwheel>=2.22.0 scikit-build-core>=0.10 | |
- name: Build Python Wheels | |
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 |