Skip to content

Commit 4086ce9

Browse files
simbasimba
authored andcommitted
fix: CI — install mlx.metallib from Python mlx package
The Metal shader library is required at runtime by MLX Swift. Install via: python3 -m venv + pip install mlx + copy metallib. Also trigger CI on feature/* branches.
1 parent 6b34c97 commit 4086ce9

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/e2e-test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: E2E Tests
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, feature/*]
66
pull_request:
77
branches: [main]
88

@@ -18,9 +18,6 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
- name: Install Metal Toolchain
22-
run: xcodebuild -downloadComponent MetalToolchain || true
23-
2421
- name: Cache Swift packages
2522
uses: actions/cache@v4
2623
with:
@@ -32,6 +29,12 @@ jobs:
3229
- name: Build (Release)
3330
run: swift build -c release
3431

32+
- name: Install MLX Metal library
33+
run: |
34+
python3 -m venv /tmp/mlx_venv
35+
/tmp/mlx_venv/bin/pip install --quiet mlx
36+
cp /tmp/mlx_venv/lib/python*/site-packages/mlx/lib/mlx.metallib .build/release/
37+
3538
- name: Cache MLX model
3639
uses: actions/cache@v4
3740
with:

0 commit comments

Comments
 (0)