From 27fa7596241a18e8aaba6b99be9a9f50f9775c82 Mon Sep 17 00:00:00 2001 From: Taegyun Kim Date: Thu, 7 Nov 2024 22:43:54 -0500 Subject: [PATCH 1/2] build for arm64 --- .github/workflows/build_python_3.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_python_3.yml b/.github/workflows/build_python_3.yml index f00de62e2b7..975cd80d646 100644 --- a/.github/workflows/build_python_3.yml +++ b/.github/workflows/build_python_3.yml @@ -33,7 +33,7 @@ jobs: cibuildwheel --print-build-identifiers --platform linux --arch x86_64,i686 | jq -cR '{only: ., os: "ubuntu-latest"}' \ && cibuildwheel --print-build-identifiers --platform linux --arch aarch64 | jq -cR '{only: ., os: "arm-4core-linux"}' \ && cibuildwheel --print-build-identifiers --platform windows --arch AMD64,x86 | jq -cR '{only: ., os: "windows-latest"}' \ - && cibuildwheel --print-build-identifiers --platform macos --arch x86_64,universal2 | jq -cR '{only: ., os: "macos-13"}' + && cibuildwheel --print-build-identifiers --platform macos --arch x86_64,universal2,arm64 | jq -cR '{only: ., os: "macos-13"}' } | jq -sc ) echo $MATRIX_INCLUDE From b36cd8e15f3bea409853445ba870c2ecd5a2e83a Mon Sep 17 00:00:00 2001 From: Taegyun Kim Date: Fri, 8 Nov 2024 09:54:24 -0500 Subject: [PATCH 2/2] install coreutils and does this include .so? --- .github/workflows/build_python_3.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_python_3.yml b/.github/workflows/build_python_3.yml index 975cd80d646..6144161ea4a 100644 --- a/.github/workflows/build_python_3.yml +++ b/.github/workflows/build_python_3.yml @@ -127,7 +127,9 @@ jobs: curl -sSf https://sh.rustup.rs | sh -s -- -y; fi CIBW_BEFORE_ALL_WINDOWS: rustup target add i686-pc-windows-msvc - CIBW_BEFORE_ALL_MACOS: rustup target add aarch64-apple-darwin + CIBW_BEFORE_ALL_MACOS: | + rustup target add aarch64-apple-darwin && + brew install coreutils CIBW_ENVIRONMENT_LINUX: PATH=$HOME/.cargo/bin:$PATH CMAKE_BUILD_PARALLEL_LEVEL=24 CIBW_REPAIR_WHEEL_COMMAND_LINUX: | mkdir ./tempwheelhouse && @@ -139,7 +141,7 @@ jobs: done && rm -rf ./tempwheelhouse CIBW_REPAIR_WHEEL_COMMAND_MACOS: | - zip -d {wheel} \*.c \*.cpp \*.cc \*.h \*.hpp \*.pyx && + zip -d {wheel} \*.c \*.cpp \*.cc \*.h \*.hpp \*.pyx \*.so && delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: choco install -y 7zip &&