Skip to content

Add Torch 2.8, remove Torch 2.6 (#182) #28

Add Torch 2.8, remove Torch 2.6 (#182)

Add Torch 2.8, remove Torch 2.6 (#182) #28

name: "Build and test kernel (macOS)"
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened] # trigger on PRs
workflow_dispatch:
jobs:
build:
name: Build kernel
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
- uses: cachix/cachix-action@v15
with:
name: huggingface
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
# For now we only test that there are no regressions in building macOS
# kernels. Also run tests once we have a macOS runner.
- name: Build relu kernel
run: ( cd examples/relu && nix build .\#redistributable.torch27-metal-aarch64-darwin -L )