Skip to content

Commit

Permalink
ci: build wheels for PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
xen0n committed Jun 20, 2024
1 parent e620c53 commit 8b4335f
Showing 1 changed file with 60 additions and 7 deletions.
67 changes: 60 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,31 @@ jobs:
target: s390x
- runner: ubuntu-latest
target: ppc64le
interpreter: ['3.x']
include:
- runner: ubuntu-latest
target: x86_64
interpreter: pypy3.9
- runner: ubuntu-latest
target: x86
interpreter: pypy3.9
- runner: ubuntu-latest
target: aarch64
interpreter: pypy3.9
- runner: ubuntu-latest
target: x86_64
interpreter: pypy3.10
- runner: ubuntu-latest
target: x86
interpreter: pypy3.10
- runner: ubuntu-latest
target: aarch64
interpreter: pypy3.10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
python-version: ${{ matrix.interpreter }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -51,7 +71,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-linux-${{ matrix.platform.target }}
name: wheels-linux-${{ matrix.platform.target }}-${{ matrix.interpreter }}
path: dist
- name: pytest
if: ${{ startsWith(matrix.platform.target, 'x86_64') }}
Expand Down Expand Up @@ -92,11 +112,31 @@ jobs:
target: aarch64
- runner: ubuntu-latest
target: armv7
interpreter: ['3.x']
include:
- runner: ubuntu-latest
target: x86_64
interpreter: pypy3.9
- runner: ubuntu-latest
target: x86
interpreter: pypy3.9
- runner: ubuntu-latest
target: aarch64
interpreter: pypy3.9
- runner: ubuntu-latest
target: x86_64
interpreter: pypy3.10
- runner: ubuntu-latest
target: x86
interpreter: pypy3.10
- runner: ubuntu-latest
target: aarch64
interpreter: pypy3.10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
python-version: ${{ matrix.interpreter }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -107,7 +147,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-musllinux-${{ matrix.platform.target }}
name: wheels-musllinux-${{ matrix.platform.target }}-${{ matrix.interpreter }}
path: dist
- name: pytest
if: ${{ startsWith(matrix.platform.target, 'x86_64') }}
Expand Down Expand Up @@ -147,13 +187,22 @@ jobs:
platform:
- runner: windows-latest
target: x64
interpreter: '3.x'
- runner: windows-latest
target: x86
interpreter: '3.x'
include:
- runner: windows-latest
target: x64
interpreter: pypy3.9
- runner: windows-latest
target: x64
interpreter: pypy3.10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
python-version: ${{ matrix.interpreter }}
architecture: ${{ matrix.platform.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
Expand Down Expand Up @@ -186,11 +235,15 @@ jobs:
target: x86_64
- runner: macos-14
target: aarch64
interpreter:
- '3.x'
- pypy3.9
- pypy3.10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
python-version: ${{ matrix.interpreter }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -200,7 +253,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-macos-${{ matrix.platform.target }}
name: wheels-macos-${{ matrix.platform.target }}-${{ matrix.interpreter }}
path: dist
- name: pytest
run: |
Expand Down

0 comments on commit 8b4335f

Please sign in to comment.