Make macOS llama.cpp prebuilt selection host-OS-version aware: skip a prebuilt whose minimum-OS exceeds the host and walk back to the newest release that loads (macOS 26 keeps latest; 14/15 land on a compatible older release). Source-build fallback pins CMAKE_OSX_DEPLOYMENT_TARGET=13.3. CI: binary-load assertion plus a macos-14/15/26 install matrix. No change to Linux/Windows or CUDA selection.
80 lines
2.6 KiB
YAML
80 lines
2.6 KiB
YAML
# SPDX-License-Identifier: AGPL-3.0-only
|
|
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
|
|
|
|
# Proves Studio's llama.cpp install loads on every supported macOS. The heavy
|
|
# app smokes stay single-OS; this matrix covers the OS-version dimension cheaply
|
|
# (install.sh + binary-load assert). Regression guard for the macOS-version
|
|
# selection in studio/install_llama_prebuilt.py.
|
|
|
|
name: Mac Studio Install Matrix CI
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'studio/install_llama_prebuilt.py'
|
|
- 'studio/setup.sh'
|
|
- 'install.sh'
|
|
- '.github/scripts/assert-llama-loads.sh'
|
|
- '.github/workflows/studio-mac-install-matrix.yml'
|
|
push:
|
|
branches: [main, pip]
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
install-load:
|
|
name: Install + load (${{ matrix.os }})
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 25
|
|
continue-on-error: ${{ matrix.experimental }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: macos-14 # Apple Silicon, macOS 14 Sonoma
|
|
experimental: false
|
|
- os: macos-15 # Apple Silicon, macOS 15 Sequoia
|
|
experimental: false
|
|
- os: macos-26 # Apple Silicon, macOS 26 Tahoe
|
|
experimental: false
|
|
- os: macos-15-intel # Intel x86_64, macOS 15 (informational)
|
|
experimental: true
|
|
- os: macos-26-intel # Intel x86_64, macOS 26 (last Intel macOS)
|
|
experimental: true
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
|
with:
|
|
node-version: '22'
|
|
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Install Studio (--local, --no-torch)
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
mkdir -p logs
|
|
set -o pipefail
|
|
bash install.sh --local --no-torch 2>&1 | tee logs/install.log
|
|
|
|
- name: Assert llama.cpp loads on this macOS
|
|
run: bash .github/scripts/assert-llama-loads.sh
|
|
|
|
- name: Upload install log
|
|
if: always()
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: mac-install-matrix-${{ matrix.os }}-log
|
|
path: logs/install.log
|
|
retention-days: 7
|