Skip to content

Commit dc91a4e

Browse files
author
Aegis AI Assistant
committed
fix(ci): aggressive mlx.metallib injection for Metal accelerated tests on macOS 15
1 parent f47be0d commit dc91a4e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ jobs:
4949
/tmp/mlx_venv/bin/pip install --quiet mlx
5050
# Inject metallib into both build and test runners
5151
cp /tmp/mlx_venv/lib/python*/site-packages/mlx/lib/mlx.metallib .build/release/
52-
find .build -type d -name "MLXLMTests" -exec cp /tmp/mlx_venv/lib/python*/site-packages/mlx/lib/mlx.metallib {}/ \;
52+
# Ensure it is present in the test bundle resources and alongside the executables
53+
find .build/release -type d -name "*.xctest" -exec cp /tmp/mlx_venv/lib/python*/site-packages/mlx/lib/mlx.metallib {}/Contents/Resources/ \; 2>/dev/null || true
54+
find .build/release -type d -name "*.xctest" -exec cp /tmp/mlx_venv/lib/python*/site-packages/mlx/lib/mlx.metallib {}/ \; 2>/dev/null || true
55+
# Fallback for search parity
56+
cp /tmp/mlx_venv/lib/python*/site-packages/mlx/lib/mlx.metallib .
5357
5458
- name: Run Library Tests (Metal Accelerated)
5559
run: swift test -c release --parallel --skip-build

0 commit comments

Comments
 (0)