Skip to content

Commit 375090f

Browse files
simbasimba
authored andcommitted
Add GitHub Actions CI: build on macOS 15 (M1)
- Installs Metal Toolchain - Builds release binary - Uploads compiled arm64 binary as artifact
1 parent eb7a7ff commit 375090f

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: macos-15
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install Metal Toolchain
16+
run: xcodebuild -downloadComponent MetalToolchain || true
17+
18+
- name: Resolve dependencies
19+
run: swift package resolve
20+
21+
- name: Build (Release)
22+
run: swift build -c release
23+
24+
- name: Verify binary
25+
run: |
26+
ls -lh .build/release/mlx-server
27+
file .build/release/mlx-server
28+
29+
- name: Upload binary
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: mlx-server-arm64
33+
path: .build/release/mlx-server
34+
retention-days: 30

0 commit comments

Comments
 (0)