Skip to content

Commit 517b68d

Browse files
committed
fix(ollama)
closes #8705 closes #8706
1 parent ab4f52e commit 517b68d

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

projects/ollama.ai/package.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ build:
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

0 commit comments

Comments
 (0)