Skip to content

Commit 6b8f14d

Browse files
author
Aegis AI Assistant
committed
build: use path dependency for mlx-swift; ci: clone SharpAI/mlx-swift at ../mlx-swift before resolve
1 parent a4ce212 commit 6b8f14d

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ jobs:
3737
- name: Clear stale module cache
3838
run: find .build -type d -name ModuleCache -exec rm -rf {} + 2>/dev/null || true
3939

40+
- name: Checkout SharpAI/mlx-swift
41+
uses: actions/checkout@v4
42+
with:
43+
repository: SharpAI/mlx-swift
44+
path: ../mlx-swift
45+
4046
- name: Resolve dependencies
4147
run: swift package resolve
4248

Package.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,19 @@ let package = Package(
3737
],
3838
dependencies: [
3939
// ── Dependency Update Flow ────────────────────────────────────────────────
40-
// ml-explore/mlx-swift → SharpAI/mlx-swift (sync bot PR + CI) → exact tag below
40+
// ml-explore/mlx-swift → SharpAI/mlx-swift (sync bot PR + CI)
4141
//
4242
// SharpAI/mlx-swift adds custom Metal ops NOT in Apple upstream:
4343
// MLXFast.turboDecodeK/V, turboQuantEncode (TurboKV compression)
4444
// MLXFast.preadInto, prefault (SSD streaming)
4545
// We MUST depend on the SharpAI fork, NOT ml-explore/mlx-swift.
4646
//
47-
// Local debug: comment the URL line and uncomment:
48-
// .package(path: "../mlx-swift"),
47+
// This package uses a local path reference so the exact commit is
48+
// controlled by WhichEver repo (SwiftLM) has both as submodules.
49+
// In standalone CI, the checkout step clones SharpAI/mlx-swift
50+
// into ../mlx-swift so this path resolves correctly.
4951
// ─────────────────────────────────────────────────────────────────────────
50-
.package(url: "https://github.com/SharpAI/mlx-swift.git", exact: "0.30.6"),
52+
.package(path: "../mlx-swift"),
5153

5254
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "600.0.0-latest"),
5355
],

0 commit comments

Comments
 (0)