@@ -57,19 +57,30 @@ jobs:
5757 - run : echo '::add-matcher::.github/problem-matchers/msvc.json'
5858 if : startsWith(matrix.os, 'windows-')
5959
60- - run : pip install pipx
61- if : startsWith(matrix.os, 'macos-')
62-
6360 - uses : pypa/cibuildwheel@v2.16.2
61+ if : matrix.os != 'macos-13-xlarge'
6462 with :
6563 output-dir : dist
6664 env :
6765 CIBW_BUILD : cp3${{ matrix.minor }}-*
6866 CIBW_ARCHS_WINDOWS : x86 AMD64
69- CIBW_ARCHS_MACOS : x86_64 arm64
67+ CIBW_ARCHS_MACOS : x86_64
7068 CIBW_BEFORE_BUILD : pip install -r {project}/requirements-build-3_08.txt
7169 CIBW_BEFORE_TEST : pip install -r {project}/requirements-dev-3_08.txt
7270 CIBW_TEST_COMMAND : pytest {project}
71+
72+ - run : pip install pipx
73+ if : matrix.os == 'macos-13-xlarge'
74+ - uses : pypa/cibuildwheel@v2.16.2
75+ if : matrix.os == 'macos-13-xlarge'
76+ with :
77+ output-dir : dist
78+ env :
79+ CIBW_BUILD : cp3${{ matrix.minor }}-macosx_arm64
80+ CIBW_BEFORE_BUILD : pip install -r {project}/requirements-build-3_08.txt
81+ CIBW_BEFORE_TEST : pip install -r {project}/requirements-dev-3_08.txt
82+ CIBW_TEST_COMMAND : pytest {project}/test
83+
7384 - uses : actions/upload-artifact@v3
7485 with :
7586 name : dist
@@ -92,19 +103,30 @@ jobs:
92103 - run : echo '::add-matcher::.github/problem-matchers/msvc.json'
93104 if : startsWith(matrix.os, 'windows-')
94105
95- - run : pip install pipx
96- if : startsWith(matrix.os, 'macos-')
97-
98106 - uses : pypa/cibuildwheel@v2.16.2
107+ if : matrix.os != 'macos-13-xlarge'
99108 with :
100109 output-dir : dist
101110 env :
102111 CIBW_BUILD : cp3${{ matrix.minor }}-*
103112 CIBW_ARCHS_WINDOWS : x86 AMD64
104- CIBW_ARCHS_MACOS : x86_64 arm64
113+ CIBW_ARCHS_MACOS : x86_64
105114 CIBW_BEFORE_BUILD : pip install -r {project}/requirements-build-3_11.txt
106115 CIBW_BEFORE_TEST : pip install -r {project}/requirements-dev-3_11.txt
107116 CIBW_TEST_COMMAND : pytest {project}
117+
118+ - run : pip install pipx
119+ if : matrix.os == 'macos-13-xlarge'
120+ - uses : pypa/cibuildwheel@v2.16.2
121+ if : matrix.os == 'macos-13-xlarge'
122+ with :
123+ output-dir : dist
124+ env :
125+ CIBW_BUILD : cp3${{ matrix.minor }}-macosx_arm64
126+ CIBW_BEFORE_BUILD : pip install -r {project}/requirements-build-3_11.txt
127+ CIBW_BEFORE_TEST : pip install -r {project}/requirements-dev-3_11.txt
128+ CIBW_TEST_COMMAND : pytest {project}/test
129+
108130 - uses : actions/upload-artifact@v3
109131 with :
110132 name : dist
@@ -131,12 +153,13 @@ jobs:
131153 if : startsWith(matrix.os, 'macos-')
132154
133155 - uses : pypa/cibuildwheel@v2.16.2
156+ if : matrix.os != 'macos-13-xlarge'
134157 with :
135158 output-dir : dist
136159 env :
137160 CIBW_BUILD : cp3${{ matrix.minor }}-*
138161 CIBW_ARCHS_WINDOWS : x86 AMD64
139- CIBW_ARCHS_MACOS : x86_64 arm64
162+ CIBW_ARCHS_MACOS : x86_64
140163 CIBW_BEFORE_BUILD : pip install -r {project}/requirements-build-3_12.txt
141164 CIBW_BEFORE_TEST : pip install -r {project}/requirements-dev-3_12.txt
142165 CIBW_TEST_COMMAND : pytest {project}
@@ -145,6 +168,18 @@ jobs:
145168 name : dist
146169 path : dist
147170
171+ - run : pip install pipx
172+ if : matrix.os == 'macos-13-xlarge'
173+ - uses : pypa/cibuildwheel@v2.16.2
174+ if : matrix.os == 'macos-13-xlarge'
175+ with :
176+ output-dir : dist
177+ env :
178+ CIBW_BUILD : cp3${{ matrix.minor }}-macosx_arm64
179+ CIBW_BEFORE_BUILD : pip install -r {project}/requirements-build-3_12.txt
180+ CIBW_BEFORE_TEST : pip install -r {project}/requirements-dev-3_12.txt
181+ CIBW_TEST_COMMAND : pytest {project}/test
182+
148183 upload :
149184 name : Publish
150185 if : github.event_name == 'release'
0 commit comments