Add macos-15-large for Intel Mac builds
Replace deprecated macos-13 with macos-15-large (x86_64 Intel) to continue supporting Intel Mac users.
This commit is contained in:
39
.github/workflows/build-reusable.yml
vendored
39
.github/workflows/build-reusable.yml
vendored
@@ -70,8 +70,15 @@ jobs:
|
|||||||
python: '3.12'
|
python: '3.12'
|
||||||
- os: macos-15
|
- os: macos-15
|
||||||
python: '3.13'
|
python: '3.13'
|
||||||
# Note: macos-13 removed - GitHub Actions deprecated macos-13 runner
|
# Intel Mac builds (x86_64) - replaces deprecated macos-13
|
||||||
# (brownout started Sept 2025, fully retired Dec 2025)
|
- os: macos-15-large
|
||||||
|
python: '3.10'
|
||||||
|
- os: macos-15-large
|
||||||
|
python: '3.11'
|
||||||
|
- os: macos-15-large
|
||||||
|
python: '3.12'
|
||||||
|
- os: macos-15-large
|
||||||
|
python: '3.13'
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -191,11 +198,9 @@ jobs:
|
|||||||
export CC=clang
|
export CC=clang
|
||||||
export CXX=clang++
|
export CXX=clang++
|
||||||
# Homebrew libraries on each macOS version require matching minimum version
|
# Homebrew libraries on each macOS version require matching minimum version
|
||||||
if [[ "${{ matrix.os }}" == "macos-13" ]]; then
|
if [[ "${{ matrix.os }}" == macos-14* ]]; 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
|
||||||
fi
|
fi
|
||||||
uv build --wheel --python ${{ matrix.python }} --find-links ${GITHUB_WORKSPACE}/packages/leann-core/dist
|
uv build --wheel --python ${{ matrix.python }} --find-links ${GITHUB_WORKSPACE}/packages/leann-core/dist
|
||||||
@@ -210,13 +215,10 @@ 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++
|
||||||
# DiskANN requires macOS 13.3+ for sgesdd_ LAPACK function
|
# Homebrew libraries on each macOS version require matching minimum version
|
||||||
# But Homebrew libraries on each macOS version require matching minimum version
|
if [[ "${{ matrix.os }}" == macos-14* ]]; then
|
||||||
if [[ "${{ matrix.os }}" == "macos-13" ]]; 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
|
||||||
fi
|
fi
|
||||||
uv build --wheel --python ${{ matrix.python }} --find-links ${GITHUB_WORKSPACE}/packages/leann-core/dist
|
uv build --wheel --python ${{ matrix.python }} --find-links ${GITHUB_WORKSPACE}/packages/leann-core/dist
|
||||||
@@ -256,13 +258,10 @@ jobs:
|
|||||||
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
|
# Must match the Homebrew libraries for each macOS version
|
||||||
if [[ "${{ matrix.os }}" == "macos-13" ]]; then
|
if [[ "${{ matrix.os }}" == macos-14* ]]; 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
|
||||||
HNSW_TARGET="15.0"
|
HNSW_TARGET="15.0"
|
||||||
DISKANN_TARGET="15.0"
|
DISKANN_TARGET="15.0"
|
||||||
fi
|
fi
|
||||||
@@ -320,11 +319,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-13" ]]; then
|
if [[ "${{ matrix.os }}" == macos-14* ]]; 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
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user