diff --git a/.github/workflows/build_kernel_macos.yaml b/.github/workflows/build_kernel_macos.yaml new file mode 100644 index 00000000..51b723c3 --- /dev/null +++ b/.github/workflows/build_kernel_macos.yaml @@ -0,0 +1,24 @@ +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 )