@@ -18,12 +18,11 @@ jobs:
1818 # Job 1: Run Tests
1919 # ============================================
2020 test :
21- name : Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
22- runs-on : ${{ matrix.os }}
21+ name : Test Python ${{ matrix.python-version }}
22+ runs-on : ubuntu-latest
2323 strategy :
2424 fail-fast : false
2525 matrix :
26- os : [ubuntu-latest, macos-latest, windows-latest]
2726 python-version : ['3.9', '3.10', '3.11', '3.12']
2827
2928 steps :
6564 # Job 2: Build Wheels
6665 # ============================================
6766 build-wheels :
68- name : Build wheels on ${{ matrix.os }}
69- runs-on : ${{ matrix.os }}
67+ name : Build wheels
68+ runs-on : ubuntu-latest
7069 needs : test
71- strategy :
72- matrix :
73- os : [ubuntu-latest, macos-latest, windows-latest]
7470
7571 steps :
7672 - uses : actions/checkout@v4
@@ -86,29 +82,13 @@ jobs:
8682 - name : Install Maturin
8783 run : pip install maturin
8884
89- - name : Build wheels (Linux)
90- if : matrix.os == 'ubuntu-latest'
91- run : |
92- # Build for x86_64
93- maturin build --release --target x86_64-unknown-linux-gnu --out dist
94- # Build for aarch64 (requires cross-compilation setup)
95- # maturin build --release --target aarch64-unknown-linux-gnu --out dist
96-
97- - name : Build wheels (macOS)
98- if : matrix.os == 'macos-latest'
99- run : |
100- # Build universal2 wheel (x86_64 + arm64)
101- maturin build --release --target universal2-apple-darwin --out dist
102-
103- - name : Build wheels (Windows)
104- if : matrix.os == 'windows-latest'
105- run : |
106- maturin build --release --target x86_64-pc-windows-msvc --out dist
85+ - name : Build wheels
86+ run : maturin build --release --out dist
10787
10888 - name : Upload wheels
10989 uses : actions/upload-artifact@v4
11090 with :
111- name : wheels-${{ matrix.os }}
91+ name : wheels
11292 path : dist/*.whl
11393
11494 # ============================================
0 commit comments