Skip to content

Commit

Permalink
Try building arm-specific mac wheel and try
Browse files Browse the repository at this point in the history
manylinux_2_28 build without BEFORE_ALL
  • Loading branch information
skef committed Oct 9, 2024
1 parent 3bbed3e commit fc6dad9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit fc6dad9

Please sign in to comment.