Skip to content

Commit 0e413d1

Browse files
fix: skip cross-architecture wheel testing on macOS
On macos-15 (ARM): skip x86_64 wheel tests (prevents brew/Rosetta issues) On macos-15-intel: skip arm64 wheel tests (not runnable on Intel) Each runner now only tests wheels for its native architecture. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent a32bd21 commit 0e413d1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build_and_publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ jobs:
6969
config-file: cibuildwheel.toml
7070
env:
7171
CIBW_BUILD: "cp${{ matrix.python-version}}-*"
72+
# Skip cross-architecture testing to avoid brew/Rosetta issues
73+
CIBW_TEST_SKIP: >-
74+
${{
75+
matrix.os == 'macos-15' && '*macosx_x86_64* *aarch64* *ppc64* *s390x*' ||
76+
matrix.os == 'macos-15-intel' && '*macosx_arm64* *aarch64* *ppc64* *s390x*' ||
77+
'*aarch64* *arm64* *ppc64* *s390x*'
78+
}}
7279
7380
- name: "Upload build artifacts (${{ matrix.os }}, py${{ matrix.python-version }})"
7481
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)