Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

Commit e9ace32

Browse files
committed
CI: try to build a macOS kernel
We cannot run tests, since Metal is not supported by GitHub CI runners, but this at least helps us testing if we have a functional build.
1 parent dcbbdf2 commit e9ace32

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Build and test kernel (macOS)"
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
types: [opened, synchronize, reopened] # trigger on PRs
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
name: Build kernel
13+
runs-on: macos-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: cachix/install-nix-action@v31
17+
- uses: cachix/cachix-action@v15
18+
with:
19+
name: huggingface
20+
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
21+
# For now we only test that there are no regressions in building macOS
22+
# kernels. Also run tests once we have a macOS runner.
23+
- name: Build relu kernel
24+
run: ( cd examples/relu && nix build .\#redistributable.torch27-cxx11-metal-x86_64-darwin -L )

0 commit comments

Comments
 (0)