Skip to content

Commit

Permalink
Update wheels.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dfm authored Jun 22, 2024
1 parent 9ca5cf4 commit 6d218d8
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -50,9 +58,8 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist

merge-multiple: true
- uses: pypa/[email protected]
with:
user: __token__
Expand Down

0 comments on commit 6d218d8

Please sign in to comment.