diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c439ebb..62a0cb1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -9,53 +9,49 @@ on: jobs: build_wheels: - name: Build wheels on ${{ matrix.os }} (${{ matrix.arch }}) + name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-latest, macos-latest, ubuntu-latest] - arch: [ auto64 ] - - include: - - os: macos-latest - arch: universal2 + # macos-13 is an intel runner, macos-14 is apple silicon + os: [windows-latest, macos-13, macos-14, ubuntu-latest] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v5 name: Install Python with: - python-version: '3.8' + python-version: '3.12' - name: Build wheels - uses: pypa/cibuildwheel@v2.16.2 - env: - CIBW_ARCHS: ${{ matrix.arch }} + uses: pypa/cibuildwheel@v2.17.0 - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: + name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} path: ./wheelhouse/*.whl build_sdist: name: Build source distribution runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v5 name: Install Python with: - python-version: '3.8' + python-version: '3.12' - name: Install dependencies - run: python -m pip install cython numpy + run: python -m pip install cython numpy setuptools - name: Build sdist run: python setup.py sdist - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: + name: cibw-sdist path: dist/*.tar.gz upload_pypi: @@ -64,10 +60,11 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v4 with: - name: artifact + pattern: cibw-* path: dist + merge-multiple: true - uses: pypa/gh-action-pypi-publish@release/v1 with: