Add public API #23
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: | |
| push: | |
| pull_request: | |
| jobs: | |
| ubuntu-cpu: | |
| name: Ubuntu (CPU) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install build deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential cmake git pkg-config libpthread-stubs0-dev libcurl4-openssl-dev | |
| - name: Initialize submodules | |
| run: | | |
| git submodule sync --recursive | |
| git submodule update --init --recursive --depth 1 | |
| - name: Build llama.cpp (CPU backend) | |
| run: | | |
| ./scripts/build-llama.sh --clean | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.21' | |
| cache: false | |
| - name: Build repository | |
| run: | | |
| go version | |
| go build ./... | |
| - name: Run tests | |
| env: | |
| LLMC_SUBPROCESS: "0" | |
| run: | | |
| go test ./... -v -count=1 | |
| macos-metal: | |
| name: MacOS (Metal) | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout (with submodules) | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - name: Initialize submodules | |
| run: | | |
| git submodule sync --recursive | |
| git submodule update --init --recursive | |
| - name: Build llama.cpp (Metal backend) | |
| run: | | |
| ./scripts/build-llama.sh --clean | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.21' | |
| cache: false | |
| - name: Build repository | |
| run: | | |
| go version | |
| go build ./... | |
| - name: Run tests | |
| env: | |
| LLMC_SUBPROCESS: "0" | |
| run: | | |
| go test ./... -v -count=1 | |
| windows-cpu: | |
| name: Windows (CPU) | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout (with submodules) | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - name: Initialize submodules | |
| run: | | |
| git submodule sync --recursive | |
| git submodule update --init --recursive | |
| - name: Build llama.cpp (CPU backend) | |
| run: | | |
| bash ./scripts/build-llama.sh --clean | |
| shell: bash | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.21' | |
| cache: false | |
| - name: Build repository | |
| run: | | |
| go version | |
| go build ./... | |
| - name: Run tests | |
| env: | |
| LLMC_SUBPROCESS: "0" | |
| run: | | |
| go test ./... -v -count=1 |