From 99dc2a4f40608b94d1f687829538c2985574a330 Mon Sep 17 00:00:00 2001 From: Xavier Olive Date: Sat, 31 Dec 2022 00:42:50 +0100 Subject: [PATCH] limit wheels to windows, otherwise build from src --- .github/workflows/pypi-publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 5e22ba1..609d0cf 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -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: @@ -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 }}