From fc6dad9210ac13d8d4aedb7414f6577bf3b2abec Mon Sep 17 00:00:00 2001 From: Skef Iterum Date: Tue, 8 Oct 2024 17:19:21 -0700 Subject: [PATCH] Try building arm-specific mac wheel and try manylinux_2_28 build without BEFORE_ALL --- .github/workflows/build_wheels.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 4c483255a..f5875677b 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -47,21 +47,22 @@ jobs: CIBW_ENVIRONMENT_MACOS: "CFLAGS='-arch arm64 -arch x86_64 -I/usr/include/libxml2' CXXFLAGS='-arch arm64 -arch x86_64' LDFLAGS='-arch arm64 -arch x86_64' MACOSX_DEPLOYMENT_TARGET='10.15'" - name: Build wheel (except macosx_universal2) - if: matrix.os != 'macos-latest' uses: pypa/cibuildwheel@v2.21.1 with: output-dir: dist env: CIBW_BUILD: "cp311-*" - CIBW_ARCHS_MACOS: x86_64 + CIBW_ARCHS_MACOS: arm64 CIBW_ARCHS_WINDOWS: AMD64 CIBW_ARCHS_LINUX: x86_64 CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28 CIBW_SKIP: "*musllinux*" # CIBW_BEFORE_ALL_LINUX: "yum install -y libuuid-devel && yum install -y libxml2-devel" # CIBW_ENVIRONMENT_LINUX: "CFLAGS='-I/usr/include/libxml2'" - CIBW_BEFORE_ALL_LINUX: "dnf install uuid-devel" - CIBW_ENVIRONMENT: "FORCE_BUILD_LIBXML2=ON" + # CIBW_BEFORE_ALL_LINUX: "dnf install uuid-devel" + CIBW_ENVIRONMENT_MACOS: "CFLAGS='-I/usr/include/libxml2' MACOSX_DEPLOYMENT_TARGET='10.15'" + CIBW_ENVIRONMENT_LINUX: "FORCE_BUILD_LIBXML2=ON" + CIBW_ENVIRONMENT_WINDOWS: "FORCE_BUILD_LIBXML2=ON" - name: Build sdist (Ubuntu only) if: matrix.os == 'ubuntu-latest'