diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c6df98..63a6c61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,16 +34,23 @@ jobs: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - # macos-13 is an intel runner, macos-14 is apple silicon - # os: [ubuntu-latest, macos-13, macos-14] os: [ubuntu-latest] + max: [none] + include: + - os: macos-13 + max: 13.0 + - os: macos-14 + max: 14.0 steps: - uses: actions/checkout@v4 - name: Build wheels uses: pypa/cibuildwheel@v2.21.2 with: config-file: "{package}/pyproject.toml" + env: + MACOSX_DEPLOYMENT_TARGET: ${{ matrix.max }} - name: Publish wheel release distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: diff --git a/pyproject.toml b/pyproject.toml index ae8ba40..63f9f59 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -191,7 +191,13 @@ sdist.include = ["fast_pauli/__version__.py"] write_to = "fast_pauli/__version__.py" [tool.cibuildwheel] -build = ["cp310-manylinux_x86_64", "cp311-manylinux_x86_64", "cp312-manylinux_x86_64", "cp313-manylinux_x86_64"] -build-frontend = "build" +skip = "pp*" test-requires = "pytest" test-command = "pytest -s -vv --import-mode importlib {project}/tests/fast_pauli" + +[tool.cibuildwheel.linux] +build = ["cp3*_x86_64"] +skip = ["*musllinux*"] + +[tool.cibuildwheel.macos] +environment = "CXX=g++-14"