Skip to content

Commit d1a8308

Browse files
author
Aegis AI Assistant
committed
ci: orchestrate test environment using debug profiles recursively injecting metallib contexts adjacent to execution artifacts
1 parent 167a567 commit d1a8308

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,22 @@ jobs:
5757
clang++ -std=c++17 -O2 -o /tmp/tq_test tests/test_turbo_quant.cpp
5858
/tmp/tq_test
5959
60+
- name: Build Test Harness
61+
run: swift build --build-tests
62+
6063
- name: Install MLX Metal library
6164
run: |
6265
python3 -m venv /tmp/mlx_venv
6366
/tmp/mlx_venv/bin/pip install --quiet mlx
67+
68+
# Inject metallib for production e2e runner
6469
cp /tmp/mlx_venv/lib/python*/site-packages/mlx/lib/mlx.metallib .build/release/
70+
71+
# Distribute metallib exclusively to XCTest bundles so it satisfies memory.cpp current_binary_dir() constraints natively.
72+
find .build -type d -name "MacOS" -exec cp /tmp/mlx_venv/lib/python*/site-packages/mlx/lib/mlx.metallib {}/ \;
6573
6674
- name: SwiftBuddy Tests (MemPalace & Lifecycle)
67-
run: MLX_METAL_PATH=$PWD/.build/release/mlx.metallib swift test -c release --filter SwiftBuddyTests
75+
run: swift test --skip-build --filter SwiftBuddyTests
6876

6977
- name: Cache MLX model
7078
uses: actions/cache@v4

0 commit comments

Comments
 (0)