Skip to content

Commit

Permalink
More wheels, and v4 artifact actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Aug 6, 2024
1 parent e4b5453 commit a6541d9
Showing 1 changed file with 66 additions and 20 deletions.
86 changes: 66 additions & 20 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
3.10
3.11
3.12
3.13
pypy3.9
pypy3.10
allow-prereleases: true
- name: Set up uv
Expand All @@ -75,18 +77,27 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: |
3.8
3.9
3.10
3.11
3.12
3.13
pypy3.9
pypy3.10
allow-prereleases: true
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --interpreter '3.8 3.9 3.10 3.11 3.12 pypy3.8 pypy3.9 pypy3.10'
args: --release --out dist --interpreter '3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
sccache: "true"
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: dist-${{ github.job }}-${{ matrix.target }}
path: dist

musllinux:
Expand All @@ -102,26 +113,35 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: |
3.8
3.9
3.10
3.11
3.12
3.13
pypy3.9
pypy3.10
allow-prereleases: true
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --interpreter '3.8 3.9 3.10 3.11 3.12 pypy3.8 pypy3.9 pypy3.10'
args: --release --out dist --interpreter '3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
manylinux: musllinux_1_2
sccache: "true"
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: dist-${{ github.job }}-${{ matrix.target }}
path: dist

windows:
needs: test
runs-on: windows-latest
strategy:
matrix:
target: [x64, x86]
target: [x64, x86] # x86 is not supported by pypy
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -132,17 +152,21 @@ jobs:
3.10
3.11
3.12
3.13
${{ matrix.target == 'x64' && 'pypy3.9' || '' }}
${{ matrix.target == 'x64' && 'pypy3.10' || '' }}
allow-prereleases: true
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --interpreter '3.8 3.9 3.10 3.11 3.12'
args: --release --out dist --interpreter '3.8 3.9 3.10 3.11 3.12 3.13' --interpreter ${{ matrix.target == 'x64' && 'pypy3.9 pypy3.10' || '' }}
sccache: "true"
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: dist-${{ github.job }}-${{ matrix.target }}
path: dist

macos:
Expand All @@ -155,33 +179,54 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: |
3.8
3.9
3.10
3.11
3.12
3.13
pypy3.9
pypy3.10
allow-prereleases: true
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --interpreter '3.8 3.9 3.10 3.11 3.12 pypy3.8 pypy3.9 pypy3.10'
args: --release --out dist --interpreter '3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
sccache: "true"
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: dist-${{ github.job }}-${{ matrix.target }}
path: dist

sdist:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: |
3.8
3.9
3.10
3.11
3.12
3.13
pypy3.9
pypy3.10
allow-prereleases: true
- name: Build an sdist
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist
- name: Upload sdist
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: dist-${{ github.job }}
path: dist

release:
Expand All @@ -198,12 +243,13 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: wheels
pattern: dist-*
merge-multiple: true
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
with:
command: upload
args: --skip-existing *
args: --non-interactive --skip-existing *
- name: Create a GitHub Release
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit a6541d9

Please sign in to comment.