Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Nov 30, 2023
1 parent 024d7b4 commit e86e5d4
Showing 1 changed file with 32 additions and 24 deletions.
56 changes: 32 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,27 @@ jobs:
strategy:
matrix:
include:
# - { wheel: cp38-macosx_arm64, os: macos-latest }
# - { wheel: cp38-macosx_x86_64, os: macos-latest }
# - { wheel: cp38-manylinux_x86_64, os: ubuntu-latest }
# - { wheel: cp38-win_amd64, os: windows-latest }
# - { wheel: cp39-macosx_arm64, os: macos-latest }
# - { wheel: cp39-macosx_x86_64, os: macos-latest }
# - { wheel: cp39-manylinux_x86_64, os: ubuntu-latest }
# - { wheel: cp39-win_amd64, os: windows-latest }
# - { wheel: cp310-macosx_arm64, os: macos-latest }
# - { wheel: cp310-macosx_x86_64, os: macos-latest }
# - { wheel: cp310-manylinux_x86_64, os: ubuntu-latest }
# - { wheel: cp310-win_amd64, os: windows-latest }
# - { wheel: cp311-macosx_arm64, os: macos-latest }
# - { wheel: cp311-macosx_x86_64, os: macos-latest }
# - { wheel: cp311-manylinux_x86_64, os: ubuntu-latest }
# - { wheel: cp311-win_amd64, os: windows-latest }
- { wheel: cp38-macosx_arm64, os: macos-latest }
- { wheel: cp38-macosx_x86_64, os: macos-latest }
- { wheel: cp38-manylinux_x86_64, os: ubuntu-latest }
- { wheel: cp38-win_amd64, os: windows-latest }
- { wheel: cp39-macosx_arm64, os: macos-latest }
- { wheel: cp39-macosx_x86_64, os: macos-latest }
- { wheel: cp39-manylinux_x86_64, os: ubuntu-latest }
- { wheel: cp39-win_amd64, os: windows-latest }
- { wheel: cp310-macosx_arm64, os: macos-latest }
- { wheel: cp310-macosx_x86_64, os: macos-latest }
- { wheel: cp310-manylinux_x86_64, os: ubuntu-latest }
- { wheel: cp310-win_amd64, os: windows-latest }
- { wheel: cp311-macosx_arm64, os: macos-latest }
- { wheel: cp311-macosx_x86_64, os: macos-latest }
- { wheel: cp311-manylinux_x86_64, os: ubuntu-latest }
- { wheel: cp311-win_amd64, os: windows-latest }
- { wheel: cp312-macosx_arm64, os: macos-latest }
# - { wheel: cp312-macosx_x86_64, os: macos-latest }
# - { wheel: cp312-manylinux_x86_64, os: ubuntu-latest }
# - { wheel: cp312-win_amd64, os: windows-latest }
# - { wheel: pp39-manylinux_x86_64, os: ubuntu-latest }
- { wheel: cp312-macosx_x86_64, os: macos-latest }
- { wheel: cp312-manylinux_x86_64, os: ubuntu-latest }
- { wheel: cp312-win_amd64, os: windows-latest }
- { wheel: pp39-manylinux_x86_64, os: ubuntu-latest }

# Currently broken with PyPy 7.3? See https://foss.heptapod.net/pypy/pypy/-/issues/4013.
# - { wheel: pp39-macosx_x86_64, os: macos-latest }
Expand Down Expand Up @@ -94,11 +94,19 @@ jobs:
name: wheels
path: ./wheelhouse/*.whl

# Make sure the macOS wheels cross-compiled on x86-64 for ARM64 are functional
test_macos_arm_wheels:
needs: build_wheels
name: Test macOS ARM64 wheels
name: Test macOS ARM64 wheel for Python ${{ matrix.python }}
runs-on: [macOS, ARM64]

strategy:
matrix:
include:
- { wheel: cp38, python: '3.8' }
- { wheel: cp39, python: '3.9' }
- { wheel: cp310, python: '3.10' }
- { wheel: cp311, python: '3.11' }
- { wheel: cp312, python: '3.12' }
steps:
- uses: actions/download-artifact@v3
with:
Expand All @@ -110,9 +118,9 @@ jobs:
path: dist
- uses: actions/setup-python@v4
with:
python-version: '3.12'
python-version: ${{ matrix.python }}
- run: |
pip install --force-reinstall ./dist/*cp312*macos*arm64.whl
pip install --force-reinstall ./dist/*${{ matrix.wheel }}*macos*arm64.whl
tar xvf ./dist/pypcode-*.tar.gz
cd pypcode-*/tests
python -m unittest discover -v -s .
Expand Down

0 comments on commit e86e5d4

Please sign in to comment.