mirror of
https://github.com/mudler/LocalAI.git
synced 2024-06-07 19:40:48 +00:00
ci: attempt to configure renovate with custom regexes (#178)
This commit is contained in:
parent
af18fdc749
commit
3fe11fe24d
6
Makefile
6
Makefile
@ -2,11 +2,8 @@ GOCMD=go
|
||||
GOTEST=$(GOCMD) test
|
||||
GOVET=$(GOCMD) vet
|
||||
BINARY_NAME=local-ai
|
||||
# renovate: datasource=github-tags depName=go-skynet/go-llama.cpp
|
||||
GOLLAMA_VERSION?=llama.cpp-f4cef87
|
||||
# renovate: datasource=git-refs packageNameTemplate=https://github.com/go-skynet/go-gpt4all-j.cpp currentValueTemplate=master depNameTemplate=go-gpt4all-j.cpp
|
||||
GOGPT4ALLJ_VERSION?=1f7bff57f66cb7062e40d0ac3abd2217815e5109
|
||||
# renovate: datasource=git-refs packageNameTemplate=https://github.com/go-skynet/go-gpt2.cpp currentValueTemplate=master depNameTemplate=go-gpt2.cpp
|
||||
GOGPT2_VERSION?=245a5bfe6708ab80dc5c733dcdbfbe3cfd2acdaa
|
||||
|
||||
RWKV_REPO?=https://github.com/donomii/go-rwkv.cpp
|
||||
@ -77,7 +74,8 @@ go-gpt2/libgpt2.a: go-gpt2
|
||||
$(MAKE) -C go-gpt2 $(GENERIC_PREFIX)libgpt2.a
|
||||
|
||||
go-llama:
|
||||
git clone -b $(GOLLAMA_VERSION) --recurse-submodules https://github.com/go-skynet/go-llama.cpp go-llama
|
||||
git clone --recurse-submodules https://github.com/go-skynet/go-llama.cpp go-llama
|
||||
cd go-llama && git checkout -b build $(GOLLAMA_VERSION) && git submodule update --init --recursive --depth 1
|
||||
|
||||
go-llama/libbinding.a: go-llama
|
||||
$(MAKE) -C go-llama $(GENERIC_PREFIX)libbinding.a
|
||||
|
@ -1,17 +1,41 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:base"
|
||||
],
|
||||
"extends": ["config:base"],
|
||||
"dependencyDashboardApproval": true,
|
||||
"labels": ["PR: Dependency ⬆️", "repo automation 🤖"],
|
||||
"postUpdateOptions": ["yarnDedupeHighest"],
|
||||
"regexManagers": [
|
||||
{
|
||||
"fileMatch": [
|
||||
"^Makefile$"
|
||||
],
|
||||
"matchStrings": [
|
||||
"#\\s*renovate:\\s*datasource=(?<datasource>.*?) depName=(?<depName>.*?)( datasourceTemplate=(?<datasourceTemplate>.*?))?( packageNameTemplate=(?<packageNameTemplate>.*?))?( depNameTemplate=(?<depNameTemplate>.*?))?( valueTemplate=(?<currentValueTemplate>.*?))?( versioning=(?<versioning>.*?))?\\s+.+_VERSION=(?<currentValue>.*?)\\s"
|
||||
],
|
||||
"versioningTemplate": "{{#if versioning}}{{versioning}}{{/if}}"
|
||||
"fileMatch": ["^Makefile$"],
|
||||
"matchStrings": ["GOGPT4ALLJ_VERSION?=(?<currentDigest>.*)\\n"],
|
||||
"datasourceTemplate": "git-refs",
|
||||
"depNameTemplate": "backends-gpt4all",
|
||||
"lookupNameTemplate": "https://github.com/go-skynet/go-gpt4all-j.cpp.git",
|
||||
"currentValueTemplate": "master"
|
||||
},
|
||||
{
|
||||
"fileMatch": ["^Makefile$"],
|
||||
"matchStrings": ["GOLLAMA_VERSION?=(?<currentDigest>.*)\\n"],
|
||||
"datasourceTemplate": "git-refs",
|
||||
"depNameTemplate": "backends-go-llama.cpp",
|
||||
"lookupNameTemplate": "https://github.com/go-skynet/go-llama.cpp.git",
|
||||
"currentValueTemplate": "master"
|
||||
},
|
||||
{
|
||||
"fileMatch": ["^Makefile$"],
|
||||
"matchStrings": ["GOGPT2_VERSION?=(?<currentDigest>.*)\\n"],
|
||||
"datasourceTemplate": "git-refs",
|
||||
"depNameTemplate": "backends-go-gpt2.cpp",
|
||||
"lookupNameTemplate": "https://github.com/go-skynet/go-gpt2.cpp.git",
|
||||
"currentValueTemplate": "master"
|
||||
},
|
||||
{
|
||||
"fileMatch": ["^Makefile$"],
|
||||
"matchStrings": ["RWKV_VERSION?=(?<currentDigest>.*)\\n"],
|
||||
"datasourceTemplate": "git-refs",
|
||||
"depNameTemplate": "backends-go-rwkv.cpp",
|
||||
"lookupNameTemplate": "https://github.com/donomii/go-rwkv.cpp.git",
|
||||
"currentValueTemplate": "main"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user