diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8e944584..1d95afdc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,10 +10,10 @@ permissions: pull-requests: read jobs: - build-windows-and-mac: + build-windows: strategy: matrix: - os: [windows-latest, macos-latest] + os: [windows-latest] python: ['3.9', '3.10', '3.11', '3.12'] runs-on: ${{ matrix.os }} steps: @@ -41,6 +41,37 @@ jobs: name: dist-artifacts-${{ matrix.os }}-${{ matrix.python }} path: dist + build-mac: + strategy: + matrix: + os: [macos-latest] + python: ['3.10', '3.11', '3.12'] # 3.9 triggers scipy issues when installing + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + + - name: Build lib + run: | + pip install setuptools + pip install wheel + python setup.py develop + python setup.py bdist_wheel + + - name: List contents of dist + run: ls -R dist + + - name: Archive build artifacts + uses: actions/upload-artifact@v4 + with: + name: dist-artifacts-${{ matrix.os }}-${{ matrix.python }} + path: dist + build-linux: runs-on: ubuntu-latest container: @@ -92,7 +123,7 @@ jobs: deploy: runs-on: ubuntu-latest - needs: [build-linux, build-windows-and-mac] + needs: [build-linux, build-windows, build-mac] steps: - name: Checkout uses: actions/checkout@v4