diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 6ebe0ed0..639865b1 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -30,11 +30,22 @@ jobs: path: dist/ if-no-files-found: error wheels: - name: wheels / ${{ matrix.os }} + name: wheels / ${{ matrix.platform }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: + include: + - platform: linux + os: ubuntu-latest + - platform: windows + os: windows-latest + - platform: macos + os: macos-latest + - platform: ios + os: macos-latest + - platform: android + os: ubuntu-latest os: [ubuntu-latest, windows-latest, macos-latest] outputs: artifact-id: ${{ steps.upload-artifact.outputs.artifact-id }} @@ -52,10 +63,12 @@ jobs: platforms: arm64,armv7l,ppc64le,riscv64 - run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV - uses: pypa/cibuildwheel@e090b81e30c4d855ea63bf4b6e59204c09a101ae # v4.2.1 + env: + CIBW_PLATFORM: ${{ matrix.platform }} - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 id: upload-artifact with: - name: build-wheels-${{ matrix.os }} + name: build-wheels-${{ matrix.platform }} path: wheelhouse/ if-no-files-found: error create-release: diff --git a/CHANGES.rst b/CHANGES.rst index e12c4931..c1ff8d1a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,7 @@ Version 3.0.4 Unreleased - Wheels are available for Python 3.15. -- Wheels are available for ``armv7l`` and ``ppc64le``. +- Wheels are available for ``armv7l``, ``ppc64le``, Android, and iOS. - Improve performance of ``striptags``. :issue:`521` diff --git a/pyproject.toml b/pyproject.toml index 548eb168..9df297a7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -224,3 +224,11 @@ archs = ["x86_64", "arm64"] [tool.cibuildwheel.windows] archs = ["auto", "ARM64"] + +[tool.cibuildwheel.ios] +archs = ["arm64_iphoneos", "arm64_iphonesimulator", "x86_64_iphonesimulator"] +build-frontend = "build" + +[tool.cibuildwheel.android] +archs = ["arm64_v8a", "x86_64"] +build-frontend = "build"