Skip to content

Commit ec8cff5

Browse files
committed
Update build targets for win32 and arm64
1 parent d4f3b1a commit ec8cff5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
cp -r ../app/tng app
3838
3939
- name: Build wheels
40-
uses: pypa/cibuildwheel@v2.3.1
40+
uses: pypa/cibuildwheel@v2.11.1
4141
with:
4242
package-dir: python
4343
env:
@@ -46,8 +46,9 @@ jobs:
4646
CIBW_ARCHS_MACOS: "x86_64 arm64"
4747
# Skip trying to test arm64 builds on Intel Macs
4848
CIBW_TEST_SKIP: "*-macosx_arm64 *-macosx_universal2:arm64"
49+
CMAKE_OSX_ARCHITECTURES: "arm64;x86_64"
4950

50-
- uses: actions/upload-artifact@v2
51+
- uses: actions/upload-artifact@v3
5152
with:
5253
path: wheelhouse/*.whl
5354

@@ -111,4 +112,3 @@ jobs:
111112
password: ${{ secrets.pypi_password }}
112113
repository_url: https://test.pypi.org/legacy/
113114
skip_existing: true
114-

python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def build_extension(self, ext):
156156
elif sys.maxsize > 2**32:
157157
cmake_args += ['-A', 'x64']
158158
else:
159-
cmake_args += ['-A', 'x86']
159+
cmake_args += ['-A', 'win32']
160160
else:
161161
cmake_args += ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir]
162162

0 commit comments

Comments
 (0)