diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c6df98..845a1f2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,10 @@ # the name of this file must match the one in pypi.org config name: Build/Test/Release -on: - release: - types: - - published +on: [push] + # on: + # release: + # types: + # - published permissions: id-token: write # This is required for requesting the JWT jobs: @@ -28,23 +29,30 @@ jobs: env: BUILD_OS: ${{ matrix.os }} CXX: ${{ matrix.compiler }} - - name: Publish source dist release distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 +# - name: Publish source dist release distributions to PyPI +# uses: pypa/gh-action-pypi-publish@release/v1 wheels_build: 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" - - name: Publish wheel release distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: wheelhouse + env: + MACOSX_DEPLOYMENT_TARGET: ${{ matrix.max }} +# - name: Publish wheel release distributions to PyPI +# uses: pypa/gh-action-pypi-publish@release/v1 +# with: +# packages-dir: wheelhouse 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"