Set MACOSX_DEPLOYMENT_TARGET=13.x for Intel builds
Intel Mac wheels (macos-15-large) now target macOS 13.0/13.3 for backward compatibility, allowing macOS 13/14/15 Intel users to install pre-built wheels.
This commit is contained in:
27
.github/workflows/build-reusable.yml
vendored
27
.github/workflows/build-reusable.yml
vendored
@@ -197,8 +197,12 @@ jobs:
|
|||||||
# Use system clang for better compatibility
|
# Use system clang for better compatibility
|
||||||
export CC=clang
|
export CC=clang
|
||||||
export CXX=clang++
|
export CXX=clang++
|
||||||
# Homebrew libraries on each macOS version require matching minimum version
|
# Set deployment target based on runner
|
||||||
if [[ "${{ matrix.os }}" == macos-14* ]]; then
|
# macos-15-large is Intel x86_64, target 13.0 for backward compatibility
|
||||||
|
# macos-14/15 are arm64, target their respective versions
|
||||||
|
if [[ "${{ matrix.os }}" == "macos-15-large" ]]; then
|
||||||
|
export MACOSX_DEPLOYMENT_TARGET=13.0
|
||||||
|
elif [[ "${{ matrix.os }}" == macos-14* ]]; then
|
||||||
export MACOSX_DEPLOYMENT_TARGET=14.0
|
export MACOSX_DEPLOYMENT_TARGET=14.0
|
||||||
elif [[ "${{ matrix.os }}" == macos-15* ]]; then
|
elif [[ "${{ matrix.os }}" == macos-15* ]]; then
|
||||||
export MACOSX_DEPLOYMENT_TARGET=15.0
|
export MACOSX_DEPLOYMENT_TARGET=15.0
|
||||||
@@ -215,8 +219,12 @@ jobs:
|
|||||||
# Use system clang for better compatibility
|
# Use system clang for better compatibility
|
||||||
export CC=clang
|
export CC=clang
|
||||||
export CXX=clang++
|
export CXX=clang++
|
||||||
# Homebrew libraries on each macOS version require matching minimum version
|
# Set deployment target based on runner
|
||||||
if [[ "${{ matrix.os }}" == macos-14* ]]; then
|
# macos-15-large is Intel x86_64, target 13.3 for backward compatibility (DiskANN needs 13.3+)
|
||||||
|
# macos-14/15 are arm64, target their respective versions
|
||||||
|
if [[ "${{ matrix.os }}" == "macos-15-large" ]]; then
|
||||||
|
export MACOSX_DEPLOYMENT_TARGET=13.3
|
||||||
|
elif [[ "${{ matrix.os }}" == macos-14* ]]; then
|
||||||
export MACOSX_DEPLOYMENT_TARGET=14.0
|
export MACOSX_DEPLOYMENT_TARGET=14.0
|
||||||
elif [[ "${{ matrix.os }}" == macos-15* ]]; then
|
elif [[ "${{ matrix.os }}" == macos-15* ]]; then
|
||||||
export MACOSX_DEPLOYMENT_TARGET=15.0
|
export MACOSX_DEPLOYMENT_TARGET=15.0
|
||||||
@@ -257,8 +265,11 @@ jobs:
|
|||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
run: |
|
run: |
|
||||||
# Determine deployment target based on runner OS
|
# Determine deployment target based on runner OS
|
||||||
# Must match the Homebrew libraries for each macOS version
|
# macos-15-large is Intel x86_64, target 13.x for backward compatibility
|
||||||
if [[ "${{ matrix.os }}" == macos-14* ]]; then
|
if [[ "${{ matrix.os }}" == "macos-15-large" ]]; then
|
||||||
|
HNSW_TARGET="13.0"
|
||||||
|
DISKANN_TARGET="13.3"
|
||||||
|
elif [[ "${{ matrix.os }}" == macos-14* ]]; then
|
||||||
HNSW_TARGET="14.0"
|
HNSW_TARGET="14.0"
|
||||||
DISKANN_TARGET="14.0"
|
DISKANN_TARGET="14.0"
|
||||||
elif [[ "${{ matrix.os }}" == macos-15* ]]; then
|
elif [[ "${{ matrix.os }}" == macos-15* ]]; then
|
||||||
@@ -319,7 +330,9 @@ jobs:
|
|||||||
PY_TAG=$($UV_PY -c "import sys; print(f'cp{sys.version_info[0]}{sys.version_info[1]}')")
|
PY_TAG=$($UV_PY -c "import sys; print(f'cp{sys.version_info[0]}{sys.version_info[1]}')")
|
||||||
|
|
||||||
if [[ "$RUNNER_OS" == "macOS" ]]; then
|
if [[ "$RUNNER_OS" == "macOS" ]]; then
|
||||||
if [[ "${{ matrix.os }}" == macos-14* ]]; then
|
if [[ "${{ matrix.os }}" == "macos-15-large" ]]; then
|
||||||
|
export MACOSX_DEPLOYMENT_TARGET=13.3
|
||||||
|
elif [[ "${{ matrix.os }}" == macos-14* ]]; then
|
||||||
export MACOSX_DEPLOYMENT_TARGET=14.0
|
export MACOSX_DEPLOYMENT_TARGET=14.0
|
||||||
elif [[ "${{ matrix.os }}" == macos-15* ]]; then
|
elif [[ "${{ matrix.os }}" == macos-15* ]]; then
|
||||||
export MACOSX_DEPLOYMENT_TARGET=15.0
|
export MACOSX_DEPLOYMENT_TARGET=15.0
|
||||||
|
|||||||
Reference in New Issue
Block a user