Skip to content

Commit 69c05cc

Browse files
author
Aegis AI Assistant
committed
fix(ci): scatter metallib to all test binary locations
1 parent a95188a commit 69c05cc

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/downstream_integration.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,13 @@ jobs:
4545
run: |
4646
python3 -m venv /tmp/mlx_venv
4747
/tmp/mlx_venv/bin/pip install --quiet mlx
48-
cp /tmp/mlx_venv/lib/python*/site-packages/mlx/lib/mlx.metallib SwiftLM/.build/debug/ || echo "No debug metal lib"
49-
find SwiftLM/.build -type d -name "MLXLMTests" -exec cp /tmp/mlx_venv/lib/python*/site-packages/mlx/lib/mlx.metallib {}/ \;
48+
METALLIB=/tmp/mlx_venv/lib/python*/site-packages/mlx/lib/mlx.metallib
49+
# Copy to all locations the test runner and linked bundles may search
50+
cp $METALLIB SwiftLM/.build/debug/ || true
51+
find SwiftLM/.build -name "*.xctest" -exec cp $METALLIB {}/Contents/MacOS/ \; 2>/dev/null || true
52+
find SwiftLM/.build -type d \( -name "debug" -o -name "release" \) -exec cp $METALLIB {}/ \; 2>/dev/null || true
53+
# Also copy beside test binaries directly
54+
find SwiftLM/.build -name "*Tests" -type f -exec sh -c 'cp '$METALLIB' "$(dirname {})"/' \; 2>/dev/null || true
5055
5156
- name: Run SwiftLM Integration Tests
5257
run: swift test --parallel --skip-build

0 commit comments

Comments
 (0)