Skip to content

Commit

Permalink
add mac and win builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mammothb committed Mar 29, 2024
1 parent 82ce45d commit 277430a
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,68 @@ jobs:
with:
name: artifact-${{ github.job }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
build_wheels_macos:
name: Build wheels for macos-latest/${{ matrix.arch }}/${{ matrix.python_tag }}
needs: [build_sdist]
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
arch: [x86_64, arm64]
python_tag: ["cp38-*", "cp39-*", "cp310-*", "cp311-*", "cp312-*"]
steps:
- uses: actions/checkout@v4
# - uses: actions/download-artifact@v4
# with:
# name: artifact-sdist
# path: dist
# - name: Copy wheel
# run: cp dist/editdistpy-*.tar.gz editdistpy.tar.gz
- name: Build wheel
uses: pypa/[email protected]
env:
CIBW_ARCHS_MACOS: ${{ matrix.arch }}
CIBW_BUILD: ${{ matrix.python_tag }}
CIBW_BUILD_VERBOSITY: 3
CIBW_BEFORE_TEST: pip install symspellpy --no-deps
CIBW_TEST_REQUIRES: pytest numpy
CIBW_TEST_COMMAND: python -m pytest --traceconfig -sv {project}/tests
with:
output-dir: wheelhouse
- uses: actions/upload-artifact@v4
with:
name: artifact-${{ github.job }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

build_wheels_windows:
name: Build wheels for windows-latest/${{ matrix.arch }}/${{ matrix.python_tag }}
needs: [build_sdist]
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
arch: [AMD64]
python_tag: ["cp38-*", "cp39-*", "cp310-*", "cp311-*", "cp312-*"]
steps:
- uses: actions/checkout@v4
# - uses: actions/download-artifact@v4
# with:
# name: artifact-sdist
# path: dist
# - name: Copy wheel
# run: cp dist/editdistpy-*.tar.gz editdistpy.tar.gz
- name: Build wheel
uses: pypa/[email protected]
env:
CIBW_ARCHS_MACOS: ${{ matrix.arch }}
CIBW_BUILD: ${{ matrix.python_tag }}
CIBW_BUILD_VERBOSITY: 3
CIBW_BEFORE_TEST: pip install symspellpy --no-deps
CIBW_TEST_REQUIRES: pytest numpy
CIBW_TEST_COMMAND: python -m pytest --traceconfig -sv {project}/tests
with:
output-dir: wheelhouse
- uses: actions/upload-artifact@v4
with:
name: artifact-${{ github.job }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

0 comments on commit 277430a

Please sign in to comment.