mirror of
https://github.com/mudler/LocalAI.git
synced 2025-12-29 01:19:32 -05:00
* feat: split remaining backends and drop embedded backends - Drop silero-vad, huggingface, and stores backend from embedded binaries - Refactor Makefile and Dockerfile to avoid building grpc backends - Drop golang code that was used to embed backends - Simplify building by using goreleaser Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * chore(gallery): be specific with llama-cpp backend templates Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * chore(docs): update Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * chore(ci): minor fixes Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * chore: drop all ffmpeg references Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * fix: run protogen-go Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Always enable p2p mode Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Update gorelease file Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * fix(stores): do not always load Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Fix linting issues Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Simplify Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Mac OS fixup Signed-off-by: Ettore Di Giacinto <mudler@localai.io> --------- Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
65 lines
2.1 KiB
YAML
65 lines
2.1 KiB
YAML
name: Explorer deployment
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
tags:
|
|
- 'v*'
|
|
|
|
concurrency:
|
|
group: ci-deploy-${{ github.head_ref || github.ref }}-${{ github.repository }}
|
|
|
|
jobs:
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
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: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y wget curl build-essential ffmpeg protobuf-compiler ccache upx-ucl gawk cmake libgmock-dev
|
|
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@1958fcbe2ca8bd93af633f11e97d44e567e945af
|
|
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.2
|
|
make protogen-go
|
|
- name: Build api
|
|
run: |
|
|
CGO_ENABLED=0 make build
|
|
- name: rm
|
|
uses: appleboy/ssh-action@v1.2.2
|
|
with:
|
|
host: ${{ secrets.EXPLORER_SSH_HOST }}
|
|
username: ${{ secrets.EXPLORER_SSH_USERNAME }}
|
|
key: ${{ secrets.EXPLORER_SSH_KEY }}
|
|
port: ${{ secrets.EXPLORER_SSH_PORT }}
|
|
script: |
|
|
sudo rm -rf local-ai/ || true
|
|
- name: copy file via ssh
|
|
uses: appleboy/scp-action@v1.0.0
|
|
with:
|
|
host: ${{ secrets.EXPLORER_SSH_HOST }}
|
|
username: ${{ secrets.EXPLORER_SSH_USERNAME }}
|
|
key: ${{ secrets.EXPLORER_SSH_KEY }}
|
|
port: ${{ secrets.EXPLORER_SSH_PORT }}
|
|
source: "local-ai"
|
|
overwrite: true
|
|
rm: true
|
|
target: ./local-ai
|
|
- name: restarting
|
|
uses: appleboy/ssh-action@v1.2.2
|
|
with:
|
|
host: ${{ secrets.EXPLORER_SSH_HOST }}
|
|
username: ${{ secrets.EXPLORER_SSH_USERNAME }}
|
|
key: ${{ secrets.EXPLORER_SSH_KEY }}
|
|
port: ${{ secrets.EXPLORER_SSH_PORT }}
|
|
script: |
|
|
sudo cp -rfv local-ai/local-ai /usr/bin/local-ai
|
|
sudo systemctl restart local-ai
|