Skip to content

Commit 6718295

Browse files
Frank Guoclaude
andcommitted
fix: add Git LFS support and llama.cpp build to CI workflows
- Add lfs: true to all checkout steps so the nomic model is fetched - Add llama.cpp clone + build step to release workflow - Update DEVELOPMENT.md with Git LFS setup instructions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d22ecec commit 6718295

4 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15+
with:
16+
lfs: true
1517
- uses: jdx/mise-action@v3
1618
- name: Tests
1719
run: mise run test:ci

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- uses: actions/checkout@v4
1818
with:
1919
ref: ${{ github.event.pull_request.head.sha || github.sha }}
20+
lfs: true
2021

2122
- uses: actions/setup-go@v6
2223
with:

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17+
with:
18+
lfs: true
1719
- uses: jdx/mise-action@v3
1820
- name: Tests
1921
run: mise run test:ci
@@ -36,9 +38,21 @@ jobs:
3638
- uses: actions/checkout@v4
3739
with:
3840
fetch-depth: 0
41+
lfs: true
3942

4043
- uses: jdx/mise-action@v3
4144

45+
- name: Build llama.cpp
46+
run: |
47+
git clone --depth 1 https://github.com/ggml-org/llama.cpp .deps/llama.cpp
48+
cd .deps/llama.cpp
49+
CMAKE_ARGS="-DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_BUILD_SERVER=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release"
50+
if [ "${{ matrix.goos }}" = "darwin" ]; then
51+
CMAKE_ARGS="$CMAKE_ARGS -DLLAMA_METAL=ON"
52+
fi
53+
cmake -B build $CMAKE_ARGS
54+
cmake --build build --config Release -j$(nproc || sysctl -n hw.ncpu) --target llama --target ggml --target common
55+
4256
- name: Build binary
4357
env:
4458
CGO_ENABLED: "1"

docs/DEVELOPMENT.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ All commands below assume you are in the repo root unless noted.
5454
### 1.3 One-time setup
5555

5656
```bash
57+
# Install Git LFS (required — the nomic model is stored via LFS)
58+
# macOS: brew install git-lfs
59+
# Linux: apt install git-lfs
60+
git lfs install
61+
5762
git clone https://github.com/rekal-dev/cli.git rekal-cli
5863
cd rekal-cli
5964
mise install # Install Go and golangci-lint per mise.toml

0 commit comments

Comments
 (0)