mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
381b4f0ee8
closes #3255
33 lines
742 B
YAML
33 lines
742 B
YAML
distributable:
|
|
url: git+https://github.com/jmorganca/ollama
|
|
ref: v{{version}}
|
|
versions:
|
|
github: jmorganca/ollama
|
|
platforms:
|
|
- darwin # Available for macOS Windows & Linux support coming soon. <= from https://ollama.ai/
|
|
build:
|
|
dependencies:
|
|
go.dev: ^1.21
|
|
cmake.org: ^3
|
|
git-scm.org: ^2
|
|
script:
|
|
- run: |
|
|
git submodule init
|
|
git submodule update
|
|
if: ">=0.0.18"
|
|
- go generate ./...
|
|
- go build .
|
|
- mkdir -p {{prefix}}/bin
|
|
- install ollama {{prefix}}/bin/
|
|
provides:
|
|
- bin/ollama
|
|
test:
|
|
qa-required: true
|
|
script:
|
|
- killall ollama || true
|
|
- ollama serve &
|
|
- sleep 5
|
|
- ollama create mario -f ./Modelfile
|
|
- ollama list | grep 'mario'
|
|
- killall ollama || true
|