fix(ci): use existing tinyllama model and scope yaml-cpp to tools #5
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: YAML Config Tests | |
| on: | |
| push: | |
| branches: [ "master", "devin/*" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| test-yaml-config: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Dependencies | |
| id: depends | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential cmake wget | |
| - name: Build | |
| id: cmake_build | |
| run: | | |
| cmake -B build -DLLAMA_BUILD_TESTS=ON -DLLAMA_BUILD_TOOLS=ON -DLLAMA_FATAL_WARNINGS=ON -DLLAMA_CURL=OFF | |
| cmake --build build --config Release -j $(nproc) | |
| - name: Use existing tiny model | |
| run: | | |
| # Use the existing tinyllama model that's already in the repo | |
| ls -la models/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf | |
| - name: Test YAML config functionality | |
| run: | | |
| cd build | |
| ctest -R "test-config-yaml" --verbose --timeout 300 |