pantry/projects/ollama.ai/package.yml
Jacob Heider 19de1c5c33 fix(ollama)
remove build hack (addressed upstream: https://github.com/jmorganca/ollama/pull/1780)
2024-01-04 15:31:23 -05:00

36 lines
858 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:
# 0.0.19 complains about a missing blobs directory
- run: mkdir -p ~/.ollama/models/blobs
if: =0.0.19
- killall ollama || true
- ollama serve &
- sleep 5
- ollama create mario -f ./Modelfile
- ollama list | grep 'mario'
- killall ollama || true