limit wheels to windows, otherwise build from src

This commit is contained in:
Xavier Olive 2022-12-31 00:42:50 +01:00
parent 39936e4472
commit 99dc2a4f40

View File

@ -17,7 +17,9 @@ jobs:
strategy: strategy:
matrix: 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"] python-version: ["3.8", "3.9", "3.10", "3.11"]
steps: steps:
@ -59,7 +61,7 @@ jobs:
poetry run twine upload dist/*.whl poetry run twine upload dist/*.whl
- name: Build and publish (source) - 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: env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}