2023-11-07 01:56:23 +03:00
|
|
|
distributable:
|
|
|
|
url: git+https://github.com/mudler/LocalAI
|
|
|
|
ref: ${{version.tag}}
|
|
|
|
|
|
|
|
display-name: LocalAI
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: mudler/LocalAI
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
go.dev: ^1.21
|
|
|
|
cmake.org: ^3
|
|
|
|
grpc.io: ^1
|
|
|
|
protobuf.dev: ^25
|
|
|
|
gnu.org/wget: ^1
|
|
|
|
gnu.org/coreutils: ^9
|
|
|
|
git-scm.org: ^2
|
2024-04-26 21:20:00 +03:00
|
|
|
google.com/protobuf-go: ^1
|
|
|
|
grpc.io/grpc-go: ^1
|
2024-01-25 05:57:01 +03:00
|
|
|
env:
|
|
|
|
linux:
|
|
|
|
# one of these will do it. probably.
|
|
|
|
CGO_LDFLAGS:
|
|
|
|
- -lstdc++fs
|
|
|
|
LD_FLAGS:
|
|
|
|
- -buildmode=pie
|
2023-11-07 01:56:23 +03:00
|
|
|
script:
|
|
|
|
- make build
|
|
|
|
- install -D local-ai {{prefix}}/bin/local-ai
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/local-ai
|
|
|
|
|
2024-04-26 21:20:00 +03:00
|
|
|
test:
|
|
|
|
- run: local-ai --version | grep {{version}}
|
|
|
|
if: <2.13
|
|
|
|
- run: "local-ai --help | grep 'Version: v{{version}}'"
|
|
|
|
if: '>=2.13'
|