Browse Source

Checkout specific ref for llamacpp when building native libs

tags/v0.10.0
Jason Couture 2 years ago
parent
commit
64cb697bbf
1 changed files with 14 additions and 1 deletions
  1. +14
    -1
      .github/workflows/compile.yml

+ 14
- 1
.github/workflows/compile.yml View File

@@ -2,7 +2,11 @@ name: Update Binaries

on:
workflow_dispatch:
inputs: {}
inputs:
llama_cpp_commit:
description: 'Branch, tag, or commit to use for llama.cpp'
required: true
default: 'master'
push:
branches: [cron_job]
#schedule:
@@ -11,6 +15,7 @@ on:
env:
# Compiler defines common to all platforms
COMMON_DEFINE: -DLLAMA_NATIVE=OFF -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_BUILD_SERVER=OFF -DBUILD_SHARED_LIBS=ON
LLAMA_CPP_COMMIT: '${{ github.input.events.llama_cpp_commit }}'

jobs:
compile-linux:
@@ -32,6 +37,8 @@ jobs:
- uses: actions/checkout@v3
with:
repository: ggerganov/llama.cpp
fetch-depth: 0
ref: ${{ env.LLAMA_CPP_COMMIT }}
- name: Build
id: cmake_build
run: |
@@ -63,6 +70,8 @@ jobs:
- uses: actions/checkout@v3
with:
repository: ggerganov/llama.cpp
fetch-depth: 0
ref: ${{ env.LLAMA_CPP_COMMIT }}

- name: Build
id: cmake_build
@@ -92,6 +101,8 @@ jobs:
uses: actions/checkout@v3
with:
repository: ggerganov/llama.cpp
fetch-depth: 0
ref: ${{ env.LLAMA_CPP_COMMIT }}

- uses: Jimver/cuda-toolkit@v0.2.11
if: runner.os == 'Windows'
@@ -146,6 +157,8 @@ jobs:
- uses: actions/checkout@v3
with:
repository: ggerganov/llama.cpp
fetch-depth: 0
ref: ${{ env.LLAMA_CPP_COMMIT }}
- name: Dependencies
continue-on-error: true
run: |


Loading…
Cancel
Save