-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (30 loc) · 1.9 KB
/
update.llamacpp.binaries.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"