File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 go.dev : ^1.21
1414 cmake.org : ^3
1515 git-scm.org : ^2
16+ linux :
17+ gnu.org/binutils : ' *' # objdump needed for 0.5.8
1618 script :
1719 - run :
1820 - git submodule init
@@ -30,13 +32,23 @@ build:
3032 - run :
3133 - make dist -j {{hw.concurrency}}
3234 - install -D dist/{{hw.platform}}-*/bin/ollama '{{prefix}}/bin/ollama'
33- if : ' >=0.5.2'
35+ if : ' >=0.5.2<0.5.8'
36+ - run :
37+ - cmake -S .. $CMAKE_ARGS
38+ - cmake --build .
39+ - cmake --install .
40+ - go build -ldflags="$GO_LDFLAGS" -o '{{prefix}}/bin/ollama' ../
41+ working-directory : build
42+ if : ' >=0.5.8'
3443 env :
3544 GO_LDFLAGS :
3645 # versions older than 0.1.30
3746 - -X github.com/jmorganca/ollama/version.Version={{version}}
3847 # new versions
3948 - -X github.com/ollama/ollama/version.Version={{version}}
49+ CMAKE_ARGS :
50+ - -DCMAKE_INSTALL_PREFIX={{prefix}}
51+ - -DCMAKE_BUILD_TYPE=Release
4052 linux :
4153 GO_LDFLAGS :
4254 # else segfaults
You can’t perform that action at this time.
0 commit comments