Skip to content

Commit

Permalink
use python-version matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgrakkurt committed Aug 29, 2024
1 parent 83d7022 commit 32150d5
Showing 1 changed file with 9 additions and 24 deletions.
33 changes: 9 additions & 24 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,17 @@ jobs:
target: x86
- runner: ubuntu-latest
target: aarch64
python-version: ["3.9", "3.10", "3.11", "3.12", "pypy-3.9", "pypy-3.10"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: |
3.9
3.10
3.11
3.12
pypy-3.9
pypy-3.10
python-version: ${{ matrix.python-version }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter --zig
args: --release --out dist --interpreter python${{ matrix.python-version }} --zig
sccache: 'true'
manylinux: auto
before-script-linux: sudo apt-get install -y capnproto libcapnp-dev
Expand All @@ -64,25 +59,20 @@ jobs:
target: x64
- runner: windows-latest
target: x86
python-version: ["3.9", "3.10", "3.11", "3.12", "pypy-3.9", "pypy-3.10"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: |
3.9
3.10
3.11
3.12
pypy-3.9
pypy-3.10
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.platform.target }}
- name: capnproto
run: choco install capnproto
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
args: --release --out dist --interpreter python${{ matrix.python-version }}
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v4
Expand All @@ -99,24 +89,19 @@ jobs:
target: x86_64
- runner: macos-14
target: aarch64
python-version: ["3.9", "3.10", "3.11", "3.12", "pypy-3.9", "pypy-3.10"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: |
3.9
3.10
3.11
3.12
pypy-3.9
pypy-3.10
python-version: ${{ matrix.python-version }}
- name: capnproto
run: brew install capnp
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
args: --release --out dist --interpreter python${{ matrix.python-version }}
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 32150d5

Please sign in to comment.