Fix CI: global model cache, project-local daemon runtime #57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - uses: jdx/mise-action@v3 | |
| - name: Build llama.cpp | |
| run: | | |
| git clone --depth 1 https://github.com/ggml-org/llama.cpp .deps/llama.cpp | |
| cd .deps/llama.cpp | |
| cmake -B build \ | |
| -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_EXAMPLES=OFF \ | |
| -DLLAMA_BUILD_SERVER=OFF -DBUILD_SHARED_LIBS=OFF \ | |
| -DCMAKE_BUILD_TYPE=Release | |
| cmake --build build --config Release -j$(nproc) --target llama --target ggml --target common | |
| - name: Tests | |
| run: mise run test:ci |