mirror of
https://github.com/mudler/LocalAI.git
synced 2026-01-06 10:39:55 -06:00
* chore(ci): Build Go based backends on Darwin Signed-off-by: Richard Palethorpe <io@richiejp.com> * chore(stablediffusion-ggml): Fixes for building on Darwin Signed-off-by: Richard Palethorpe <io@richiejp.com> * chore(whisper): Build on Darwin Signed-off-by: Richard Palethorpe <io@richiejp.com> --------- Signed-off-by: Richard Palethorpe <io@richiejp.com>
18 lines
446 B
Bash
18 lines
446 B
Bash
#!/bin/bash -eux
|
|
|
|
export BUILD_TYPE="${BUILD_TYPE:-metal}"
|
|
|
|
mkdir -p backend-images
|
|
make -C backend/go/${BACKEND} build
|
|
|
|
PLATFORMARCH="${PLATFORMARCH:-darwin/arm64}"
|
|
IMAGE_NAME="${IMAGE_NAME:-localai/${BACKEND}-darwin}"
|
|
|
|
./local-ai util create-oci-image \
|
|
backend/go/${BACKEND}/. \
|
|
--output ./backend-images/${BACKEND}.tar \
|
|
--image-name $IMAGE_NAME \
|
|
--platform $PLATFORMARCH
|
|
|
|
make -C backend/go/${BACKEND} clean
|