Skip to content

Commit 21d2de2

Browse files
author
lucasliu
committed
fix: patch mlx-swift-lm StrictConcurrency error in CI
1 parent e11bb31 commit 21d2de2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ jobs:
3939
git clone --depth 1 --branch "${MLX_SWIFT_LM_REF}" \
4040
https://github.com/ml-explore/mlx-swift-lm.git mlx-swift-lm
4141
42+
- name: Patch upstream StrictConcurrency issues
43+
run: |
44+
# mlx-swift-lm MediaProcessing.swift: CIContext is non-Sendable
45+
sed -i '' 's/^private let context = CIContext()/private nonisolated(unsafe) let context = CIContext()/' \
46+
mlx-swift-lm/Libraries/MLXVLM/MediaProcessing.swift
47+
4248
- name: Build
4349
run: |
4450
chmod +x build.sh

0 commit comments

Comments
 (0)