Skip to content

Commit

Permalink
Build wheels for pypi upload (but no Windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
lindonroberts committed May 30, 2024
1 parent 37d8814 commit 5b393ac
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 32 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/python_testing_windows.yml

This file was deleted.

28 changes: 26 additions & 2 deletions .github/workflows/upload_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,30 @@ on:


jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v4

# Used to host cibuildwheel
- uses: actions/setup-python@v3

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.17.0

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

make_sdist:
name: Make SDist
runs-on: ubuntu-latest
Expand All @@ -24,7 +48,7 @@ jobs:

publish-to-pypi:
name: Publish to PyPI
needs: make_sdist
needs: [build_wheels, make_sdist]
runs-on: ubuntu-latest
environment:
name: pypi
Expand All @@ -39,4 +63,4 @@ jobs:
path: dist
merge-multiple: true
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 5b393ac

Please sign in to comment.