diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 2e40008d..969a3fad 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -8,19 +8,23 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04, windows-2019, macos-10.15] + os: + - "ubuntu-22.04" + - "macos-12" + - "macos-14" + - "windows-latest" steps: - uses: actions/checkout@v4 with: submodules: true fetch-depth: 0 - - uses: pypa/cibuildwheel@v2.18.1 + - uses: pypa/cibuildwheel@v2.19.0 env: CIBW_SKIP: "pp* *-win32 *-manylinux_i686" CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 - CIBW_ARCHS_MACOS: x86_64 universal2 - uses: actions/upload-artifact@v4 with: + name: binary-${{ matrix.os }} path: ./wheelhouse/*.whl build_sdist: @@ -33,14 +37,18 @@ jobs: - uses: actions/setup-python@v5 name: Install Python with: - python-version: "3.9" - - name: Build sdist + python-version: "3.10" + - name: Install dependencies run: | python -m pip install -U pip - python -m pip install -U build - python -m build --sdist . + python -m pip install -U build twine + - name: Build sdist + run: python -m build --sdist . + - name: Check the sdist + run: python -m twine check dist/*.tar.gz - uses: actions/upload-artifact@v4 with: + name: sdist path: dist/*.tar.gz upload_pypi: @@ -50,9 +58,8 @@ jobs: steps: - uses: actions/download-artifact@v4 with: - name: artifact path: dist - + merge-multiple: true - uses: pypa/gh-action-pypi-publish@v1.8.14 with: user: __token__