update Llama.cpp binaries #3
This file contains 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: 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@v2 | |
- 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 }} | |
- name: add and commit Llama.cpp.server changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: "chore: update llama.cpp.server binaries" |