Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions .github/workflows/publish_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
fail-fast: false
matrix:
target:
- [ubuntu-latest, manylinux_x86_64]
- [windows-latest, win_amd64]
- [macos-13, macosx_x86_64]
- [macos-14, macosx_arm64]
- [ubuntu-latest, manylinux_x86_64, ""]
- [windows-latest, win_amd64, ""]
- [macos-13, macosx_x86_64, "13.0"]
- [macos-14, macosx_arm64, "14.0"]
python:
- cp39
- cp310
Expand All @@ -34,6 +34,7 @@ jobs:
uses: pypa/cibuildwheel@ee63bf16da6cddfb925f542f2c7b59ad50e93969 # v2.22.0
env:
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.target[2] }}
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.target[1] }}
CIBW_BUILD_VERBOSITY: 1
with:
Expand All @@ -46,9 +47,16 @@ jobs:
name: TenSEAL-${{ matrix.python }}-${{ matrix.target[0] }}
path: ./wheelhouse/*.whl

- name: Publish wheels to PyPI
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
- name: Set up Python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
packages-dir: ./wheelhouse/
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
python-version: "3.13"

- name: Install twine
run: python -m pip install --upgrade twine

- name: Publish wheels to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload --repository pypi --skip-existing --verbose wheelhouse/*.whl
Loading