Repository navigation
127 lines (116 loc) · 5.29 KB
/
Copy pathstudio-mac-install-matrix.yml
File metadata and controls
127 lines (116 loc) · 5.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
# Proves the llama.cpp install loads on every supported macOS version.
name: Mac Unsloth Install Matrix CI
on:
pull_request:
# ready_for_review: Windows/macOS jobs below skip draft pull requests, so marking
# one ready has to start the run that tests it.
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'studio/install_llama_prebuilt.py'
- 'studio/setup.sh'
- 'install.sh'
- '.github/scripts/assert-llama-loads.sh'
- '.github/workflows/studio-mac-install-matrix.yml'
# Imported by install_llama_prebuilt.py, which this matrix guards.
- 'studio/backend/__init__.py'
- 'studio/backend/utils/__init__.py'
- 'studio/backend/utils/auth_safe.py'
- 'studio/backend/utils/prebuilt/__init__.py'
- 'studio/backend/utils/prebuilt/llama_backend.py'
- 'studio/backend/vendor/truststore/**'
# The install step in this workflow is `uses:` on that composite action.
- '.github/actions/install-unsloth-local/action.yml'
- '.github/actions/uv-cache-restore/action.yml'
- '.github/actions/uv-cache-save/action.yml'
- '.github/actions/frontend-dist-restore/action.yml'
- '.github/actions/frontend-dist-save/action.yml'
# Reached by the install this workflow asserts on. Not requirements/** or pyproject:
# clean-machine-install-ci covers generic macOS install breakage.
- 'studio/install_python_stack.py'
- 'studio/prebuilt_core.py'
- 'studio/install_manifest.py'
- 'studio/nvidia_probe.py'
push:
branches: [main]
# Same list as the PR filter, to spare the account-wide macOS slots.
paths:
- 'studio/install_llama_prebuilt.py'
- 'studio/setup.sh'
- 'install.sh'
- '.github/scripts/assert-llama-loads.sh'
- '.github/workflows/studio-mac-install-matrix.yml'
# Imported by install_llama_prebuilt.py, which this matrix guards.
- 'studio/backend/__init__.py'
- 'studio/backend/utils/__init__.py'
- 'studio/backend/utils/auth_safe.py'
- 'studio/backend/utils/prebuilt/__init__.py'
- 'studio/backend/utils/prebuilt/llama_backend.py'
- 'studio/backend/vendor/truststore/**'
# The install step in this workflow is `uses:` on that composite action.
- '.github/actions/install-unsloth-local/action.yml'
- '.github/actions/uv-cache-restore/action.yml'
- '.github/actions/uv-cache-save/action.yml'
- '.github/actions/frontend-dist-restore/action.yml'
- '.github/actions/frontend-dist-save/action.yml'
# Reached by the install this workflow asserts on. Not requirements/** or pyproject:
# clean-machine-install-ci covers generic macOS install breakage.
- 'studio/install_python_stack.py'
- 'studio/prebuilt_core.py'
- 'studio/install_manifest.py'
- 'studio/nvidia_probe.py'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
# Latest-only on a PR branch. On main, cancel-in-progress is false so a RUNNING run is
# never killed, and a newer push replaces only the PENDING one: a merge burst runs the
# commit already executing plus the tip. See studio-backend-ci.yml for the trade.
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
jobs:
install-load:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
name: Install + load (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 25
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
include:
# Not redundant: a PR touching only this file runs no other macOS 15 ARM job.
- 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '22'
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.12'
- name: Install Unsloth (--local, --no-torch)
uses: ./.github/actions/install-unsloth-local
with:
gh-token: ${{ secrets.GITHUB_TOKEN }}
# Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.
hf-token: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}
- 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@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: mac-install-matrix-${{ matrix.os }}-log
path: logs/install.log
retention-days: 7