Skip to content

Commit b1c36ba

Browse files
author
Fran
committed
fix macos
1 parent bde01f4 commit b1c36ba

File tree

1 file changed

+30
-7
lines changed

1 file changed

+30
-7
lines changed

.github/workflows/CI.yml

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,49 @@ jobs:
6363
path: dist
6464

6565
macos:
66-
runs-on: macos-latest
66+
runs-on: ${{ matrix.runner }}
6767
strategy:
6868
matrix:
69-
python-version: ["3.10", "3.11", "3.12", "3.13"]
69+
include:
70+
- runner: macos-13
71+
target: x86_64
72+
python-version: "3.10"
73+
- runner: macos-13
74+
target: x86_64
75+
python-version: "3.11"
76+
- runner: macos-13
77+
target: x86_64
78+
python-version: "3.12"
79+
- runner: macos-13
80+
target: x86_64
81+
python-version: "3.13"
82+
- runner: macos-14
83+
target: aarch64
84+
python-version: "3.10"
85+
- runner: macos-14
86+
target: aarch64
87+
python-version: "3.11"
88+
- runner: macos-14
89+
target: aarch64
90+
python-version: "3.12"
91+
- runner: macos-14
92+
target: aarch64
93+
python-version: "3.13"
7094
steps:
7195
- uses: actions/checkout@v4
7296
- uses: actions/setup-python@v5
7397
with:
7498
python-version: ${{ matrix.python-version }}
7599
allow-prereleases: false
76-
- name: Verify Python version
77-
run: python --version
78-
- name: Build universal2 wheels
100+
- name: Build wheels
79101
uses: PyO3/maturin-action@v1
80102
with:
81-
args: --release --out dist --universal2
103+
target: ${{ matrix.target }}
104+
args: --release --out dist -i python${{ matrix.python-version }}
82105
- name: Upload wheels
83106
uses: actions/upload-artifact@v4
84107
with:
85-
name: wheels-macos-universal2-py${{ matrix.python-version }}
108+
name: wheels-macos-${{ matrix.target }}-py${{ matrix.python-version }}
86109
path: dist
87110

88111
sdist:

0 commit comments

Comments
 (0)