Skip to content

update Llama.cpp binaries #8

update Llama.cpp binaries

update Llama.cpp binaries #8

name: update Llama.cpp binaries
on:
workflow_dispatch:
env:
ASSETS_URL: https://github.com/mikbry/llama.cpp-builds/releases/download/main/
BINARIES_DIR: webapp/native/binaries/llama.cpp/
MACOS_ARM64: llama.cpp.server-aarch64-apple-darwin
MACOS_x86_64: llama.cpp.server-x86_64-apple-darwin
LINUX_x86_64: llama.cpp.server-x86_64-unknown-linux-gnu
WINDOWS_x86_64: llama.cpp.server-x86_64-pc-windows-msvc.exe
jobs:
upload-assets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: upload Llama.cpp.server files
run: |
curl -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -L -o ${{ env.BINARIES_DIR }}${{ env.MACOS_ARM64 }} ${{ env.ASSETS_URL }}${{ env.MACOS_ARM64 }}
curl -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -L -o ${{ env.BINARIES_DIR }}${{ env.MACOS_x86_64 }} ${{ env.ASSETS_URL }}${{ env.MACOS_x86_64 }}
curl -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -L -o ${{ env.BINARIES_DIR }}${{ env.LINUX_x86_64 }} ${{ env.ASSETS_URL }}${{ env.LINUX_x86_64 }}
curl -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -L -o ${{ env.BINARIES_DIR }}${{ env.WINDOWS_x86_64 }} ${{ env.ASSETS_URL }}${{ env.WINDOWS_x86_64 }}
git add .
git update-index --chmod=+x ${{ env.BINARIES_DIR }}${{ env.MACOS_ARM64 }}
git update-index --chmod=+x ${{ env.BINARIES_DIR }}${{ env.MACOS_x86_64 }}
git update-index --chmod=+x ${{ env.BINARIES_DIR }}${{ env.LINUX_x86_64 }}
git update-index --chmod=+x ${{ env.BINARIES_DIR }}${{ env.WINDOWS_x86_64 }}
- name: add and commit Llama.cpp.server changes
uses: EndBug/add-and-commit@v9
with:
message: "chore: update llama.cpp.server binaries"