diff --git a/Makefile b/Makefile index 915676b..648079c 100644 --- a/Makefile +++ b/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 diff --git a/renovate.json b/renovate.json index 7180373..16196e6 100644 --- a/renovate.json +++ b/renovate.json @@ -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=(?.*?) depName=(?.*?)( datasourceTemplate=(?.*?))?( packageNameTemplate=(?.*?))?( depNameTemplate=(?.*?))?( valueTemplate=(?.*?))?( versioning=(?.*?))?\\s+.+_VERSION=(?.*?)\\s" - ], - "versioningTemplate": "{{#if versioning}}{{versioning}}{{/if}}" + "fileMatch": ["^Makefile$"], + "matchStrings": ["GOGPT4ALLJ_VERSION?=(?.*)\\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?=(?.*)\\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?=(?.*)\\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?=(?.*)\\n"], + "datasourceTemplate": "git-refs", + "depNameTemplate": "backends-go-rwkv.cpp", + "lookupNameTemplate": "https://github.com/donomii/go-rwkv.cpp.git", + "currentValueTemplate": "main" } ] }