New release version: update version.h and docs (#952) #807
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: | |
| push: | |
| branches: [ master, main, fix ] | |
| pull_request: | |
| branches: [ master, main, fix ] | |
| jobs: | |
| ubuntu-focal-make: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone | |
| id: checkout | |
| uses: actions/checkout@v4 | |
| - name: Dependencies | |
| id: depends | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install make patch | |
| - name: Setup dependencies and patch dependencies | |
| run: | | |
| make setup | |
| - name: Cache cosmocc toolchain | |
| id: cache-cosmocc-toolchain | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-cosmocc-toolchain | |
| with: | |
| path: | | |
| .cosmocc | |
| o/depend | |
| o/depend.test | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/config.mk') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-${{ env.cache-name }} | |
| - name: Setup cosmocc and ape loader | |
| run: | | |
| sudo make cosmocc-ci PREFIX=/usr | |
| - name: Build | |
| run: | | |
| sudo make -j $(nproc) | |
| - name: Make Llamafile | |
| run: | | |
| cp ./models/TinyLLama-v0.1-5M-F16.gguf tinyllama.gguf | |
| cat << EoF > .args | |
| -m | |
| tinyllama.gguf | |
| ... | |
| EoF | |
| cp o//llamafile/llamafile \ | |
| tinyllama.llamafile | |
| o//third_party/zipalign/zipalign -j0 \ | |
| tinyllama.llamafile \ | |
| tinyllama.gguf \ | |
| .args | |
| - name: Execute LLM CLI CPU | |
| run: | | |
| ./tinyllama.llamafile --cli -p '## Famous Speech\n\nFour score and seven' |