Skip to content

Commit c6aba06

Browse files
Frank Guoclaude
andcommitted
fix: add llama.cpp build step to all CI workflows
CGO compilation of the nomic package requires llama.cpp headers and libraries. Without this, CI fails with "fatal error: llama.h: No such file or directory". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6718295 commit c6aba06

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,14 @@ jobs:
1515
with:
1616
lfs: true
1717
- uses: jdx/mise-action@v3
18+
- name: Build llama.cpp
19+
run: |
20+
git clone --depth 1 https://github.com/ggml-org/llama.cpp .deps/llama.cpp
21+
cd .deps/llama.cpp
22+
cmake -B build \
23+
-DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_EXAMPLES=OFF \
24+
-DLLAMA_BUILD_SERVER=OFF -DBUILD_SHARED_LIBS=OFF \
25+
-DCMAKE_BUILD_TYPE=Release
26+
cmake --build build --config Release -j$(nproc) --target llama --target ggml --target common
1827
- name: Tests
1928
run: mise run test:ci

.github/workflows/lint.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ jobs:
2525

2626
- uses: jdx/mise-action@v3
2727

28+
- name: Build llama.cpp
29+
run: |
30+
git clone --depth 1 https://github.com/ggml-org/llama.cpp .deps/llama.cpp
31+
cd .deps/llama.cpp
32+
cmake -B build \
33+
-DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_EXAMPLES=OFF \
34+
-DLLAMA_BUILD_SERVER=OFF -DBUILD_SHARED_LIBS=OFF \
35+
-DCMAKE_BUILD_TYPE=Release
36+
cmake --build build --config Release -j$(nproc) --target llama --target ggml --target common
37+
2838
- name: Run linters
2939
run: mise run lint
3040

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ jobs:
1717
with:
1818
lfs: true
1919
- uses: jdx/mise-action@v3
20+
- name: Build llama.cpp
21+
run: |
22+
git clone --depth 1 https://github.com/ggml-org/llama.cpp .deps/llama.cpp
23+
cd .deps/llama.cpp
24+
cmake -B build \
25+
-DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_EXAMPLES=OFF \
26+
-DLLAMA_BUILD_SERVER=OFF -DBUILD_SHARED_LIBS=OFF \
27+
-DCMAKE_BUILD_TYPE=Release
28+
cmake --build build --config Release -j$(nproc) --target llama --target ggml --target common
2029
- name: Tests
2130
run: mise run test:ci
2231
- name: Lint

0 commit comments

Comments
 (0)