Skip to content

Commit f8e0e36

Browse files
Only build native wheels on macOS
1 parent 2f54558 commit f8e0e36

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build-wheels.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,17 @@ jobs:
7777

7878
- name: Install cibuildwheel
7979
run: uv sync --project=${{ inputs.pyproject-directory }} --locked --only-group wheels
80+
81+
- name: macOS Intel: build x86_64 only
82+
if: matrix.os == 'macos-15-intel'
83+
shell: bash
84+
run: echo "CIBW_ARCHS_MACOS=x86_64" >> "$GITHUB_ENV"
8085

86+
- name: macOS ARM: build arm64 only
87+
if: matrix.os == 'macos-14'
88+
shell: bash
89+
run: echo "CIBW_ARCHS_MACOS=arm64" >> "$GITHUB_ENV"
90+
8191
- name: Build wheels
8292
run: uv run --only-group wheels --project=${{ inputs.pyproject-directory }} cibuildwheel sdist.tar.gz
8393

0 commit comments

Comments
 (0)