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: on:
workflow_dispatch: workflow_dispatch:
inputs: {}
inputs:
llama_cpp_commit:
description: 'Branch, tag, or commit to use for llama.cpp'
required: true
default: 'master'
push: push:
branches: [cron_job] branches: [cron_job]
#schedule: #schedule:
@@ -11,6 +15,7 @@ on:
env: env:
# Compiler defines common to all platforms # 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 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: jobs:
compile-linux: compile-linux:
@@ -32,6 +37,8 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
repository: ggerganov/llama.cpp repository: ggerganov/llama.cpp
fetch-depth: 0
ref: ${{ env.LLAMA_CPP_COMMIT }}
- name: Build - name: Build
id: cmake_build id: cmake_build
run: | run: |
@@ -63,6 +70,8 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
repository: ggerganov/llama.cpp repository: ggerganov/llama.cpp
fetch-depth: 0
ref: ${{ env.LLAMA_CPP_COMMIT }}


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


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


Loading…
Cancel
Save