2023-09-06 21:02:26 +03:00
|
|
|
distributable:
|
2023-09-07 00:10:44 +03:00
|
|
|
url: git+https://github.com/jmorganca/ollama
|
|
|
|
ref: v{{version}}
|
2023-09-06 21:02:26 +03:00
|
|
|
versions:
|
|
|
|
github: jmorganca/ollama
|
|
|
|
platforms:
|
|
|
|
- darwin # Available for macOS Windows & Linux support coming soon. <= from https://ollama.ai/
|
|
|
|
build:
|
|
|
|
dependencies:
|
2023-09-07 00:10:44 +03:00
|
|
|
go.dev: ^1.21
|
|
|
|
cmake.org: ^3
|
|
|
|
git-scm.org: ^2
|
2023-09-06 21:02:26 +03:00
|
|
|
script:
|
2023-09-07 00:10:44 +03:00
|
|
|
- run: |
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
2024-01-03 23:44:23 +03:00
|
|
|
if: '>=0.0.18'
|
2023-09-07 00:10:44 +03:00
|
|
|
- go generate ./...
|
2023-09-06 21:02:26 +03:00
|
|
|
- go build .
|
|
|
|
- mkdir -p {{prefix}}/bin
|
|
|
|
- install ollama {{prefix}}/bin/
|
|
|
|
provides:
|
|
|
|
- bin/ollama
|
|
|
|
test:
|
|
|
|
qa-required: true
|
|
|
|
script:
|
2023-09-12 00:43:29 +03:00
|
|
|
# 0.0.19 complains about a missing blobs directory
|
|
|
|
- run: mkdir -p ~/.ollama/models/blobs
|
|
|
|
if: =0.0.19
|
2023-09-06 21:02:26 +03:00
|
|
|
- killall ollama || true
|
|
|
|
- ollama serve &
|
|
|
|
- sleep 5
|
|
|
|
- ollama create mario -f ./Modelfile
|
|
|
|
- ollama list | grep 'mario'
|
|
|
|
- killall ollama || true
|