Skip to content

Commit 3b412e1

Browse files
committed
split windows and mac build
1 parent 6e3154b commit 3b412e1

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,14 @@ jobs:
105105
name: python-wheel-license
106106
path: LICENSE.txt
107107

108-
build-python-mac-win:
108+
build-windows:
109109
needs: [generate-license]
110-
name: Mac/Win
111-
runs-on: ${{ matrix.os }}
110+
name: Windows
111+
runs-on: windows-latest
112112
strategy:
113113
fail-fast: false
114114
matrix:
115115
python-version: ["3.10"]
116-
os: [macos-latest, windows-latest]
117116
steps:
118117
- uses: actions/checkout@v5
119118

@@ -147,25 +146,20 @@ jobs:
147146
uv run --no-project maturin build --release --strip
148147
149148
- name: List Windows wheels
150-
if: matrix.os == 'windows-latest'
151149
run: dir python\target\wheels\
152150
# since the runner is dynamic shellcheck (from actionlint) can't infer this is powershell
153151
# so we specify it explicitly
154152
shell: powershell
155153

156-
- name: List Mac wheels
157-
if: matrix.os != 'windows-latest'
158-
run: find python/target/wheels/
159-
160154
- name: Archive wheels
161155
uses: actions/upload-artifact@v4
162156
with:
163-
name: dist-${{ matrix.os }}
157+
name: dist-windows
164158
path: python/target/wheels/*
165159

166-
build-macos-x86_64:
160+
build-macos-arm64:
167161
needs: [generate-license]
168-
name: Mac x86_64
162+
name: Mac arm64
169163
runs-on: macos-latest
170164
strategy:
171165
fail-fast: false
@@ -209,7 +203,7 @@ jobs:
209203
- name: Archive wheels
210204
uses: actions/upload-artifact@v4
211205
with:
212-
name: dist-macos-aarch64
206+
name: dist-macos-arm64
213207
path: python/target/wheels/*
214208

215209
build-manylinux-x86_64:
@@ -339,8 +333,8 @@ jobs:
339333
merge-build-artifacts:
340334
runs-on: ubuntu-latest
341335
needs:
342-
- build-python-mac-win
343-
- build-macos-x86_64
336+
- build-windows
337+
- build-macos-arm64
344338
- build-manylinux-x86_64
345339
- build-manylinux-aarch64
346340
- build-sdist

0 commit comments

Comments
 (0)