Skip to content

Commit

Permalink
limit wheels to windows, otherwise build from src
Browse files Browse the repository at this point in the history
  • Loading branch information
xoolive committed Dec 30, 2022
1 parent 39936e4 commit 99dc2a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# It's just easier to recompile from source for Ubuntu and MacOS
# Yes, it is...
os: [windows-latest] # ubuntu-latest, macos-latest
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
Expand Down Expand Up @@ -59,7 +61,7 @@ jobs:
poetry run twine upload dist/*.whl
- name: Build and publish (source)
if: ${{ startsWith(runner.os, 'ubuntu') && matrix.python-version == '3.11' }}
if: ${{ startsWith(runner.os, 'windows') && matrix.python-version == '3.11' }}
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Expand Down

0 comments on commit 99dc2a4

Please sign in to comment.