From 099bd54ff21311a17f9a33f80d83da6aaa0bc524 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Thu, 11 Apr 2024 19:22:30 +0200 Subject: [PATCH] ci: try to build on macos14 (#2011) * ci: try to build on macos14 Signed-off-by: Ettore Di Giacinto * ci: fixup artifact name Signed-off-by: Ettore Di Giacinto --------- Signed-off-by: Ettore Di Giacinto --- .github/workflows/release.yaml | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a69a2b05..3c1cea44 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -158,3 +158,47 @@ jobs: with: files: | release/* + + + build-macOS-arm64: + strategy: + matrix: + include: + - build: 'avx2' + defines: '' + - build: 'avx' + defines: '-DLLAMA_AVX2=OFF' + - build: 'avx512' + defines: '-DLLAMA_AVX512=ON' + runs-on: macos-14 + steps: + - name: Clone + uses: actions/checkout@v4 + with: + submodules: true + - uses: actions/setup-go@v5 + with: + go-version: '1.21.x' + cache: false + - name: Dependencies + run: | + brew install protobuf grpc + - name: Build + id: build + env: + CMAKE_ARGS: "${{ matrix.defines }}" + BUILD_ID: "${{ matrix.build }}" + run: | + export C_INCLUDE_PATH=/usr/local/include + export CPLUS_INCLUDE_PATH=/usr/local/include + make dist + - uses: actions/upload-artifact@v4 + with: + name: LocalAI-MacOS-arm64-${{ matrix.build }} + path: release/ + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + release/*