@@ -60,13 +60,19 @@ jobs:
60
60
manylinux_image : manylinux2014
61
61
cibw_archs : " aarch64"
62
62
63
- # Use x86 macOS runner to build both x86 and ARM.
63
+ # macOS x86
64
+ - os : macos-latest
65
+ python-version : " 3.8"
66
+ platform_id : macosx_x86_64
67
+ cibw_archs : " x86_64"
68
+
69
+ # Use x86 macOS runner to build ARM.
64
70
# GitHub does not offer Apple Silicon yet (only for self-hosted).
65
71
# See https://github.com/github/roadmap/issues/528
66
72
- os : macos-latest
67
73
python-version : " 3.8"
68
74
platform_id : macosx_x86_64
69
- cibw_archs : " x86_64 arm64"
75
+ cibw_archs : " arm64"
70
76
71
77
steps :
72
78
- uses : actions/checkout@v3
@@ -117,7 +123,8 @@ jobs:
117
123
CIBW_ENVIRONMENT_WINDOWS : CMAKE_GNUtoMS=ON GRAPHBLAS_PREFIX="C:/GraphBLAS"
118
124
119
125
# macOS libomp requires special configs. BREW_LIBOMP=1 asks suitesparse.sh to include them.
120
- CIBW_ENVIRONMENT_MACOS : BREW_LIBOMP="1"
126
+ # SUITESPARSE_MACOS_ARCH asks to build a particular architecture. Either x86 or arm64.
127
+ CIBW_ENVIRONMENT_MACOS : BREW_LIBOMP="1" SUITESPARSE_MACOS_ARCH=${{ matrix.cibw_archs }}
121
128
122
129
# Uncomment to only build CPython wheels
123
130
# CIBW_BUILD: "cp*"
@@ -143,8 +150,8 @@ jobs:
143
150
# run tests
144
151
CIBW_TEST_COMMAND : " pytest --pyargs suitesparse_graphblas"
145
152
146
- # GitHub Actions macOS Intel runner cannot run ARM tests.
147
- CIBW_TEST_SKIP : " *-macosx_arm64"
153
+ # GitHub Actions macOS Intel runner cannot run ARM tests. Uncomment to silence warning.
154
+ # CIBW_TEST_SKIP: "*-macosx_arm64"
148
155
149
156
run : |
150
157
python -m pip install cibuildwheel
0 commit comments