Browse Source

Use event input directly

GHA doesn't seem to load the value into the enviroment variable first, so the workflow always runs on master.
tags/v0.10.0
Jason Couture 2 years ago
parent
commit
30e448d2d5
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      .github/workflows/compile.yml

+ 4
- 5
.github/workflows/compile.yml View File

@@ -15,7 +15,6 @@ 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:
@@ -38,7 +37,7 @@ jobs:
with:
repository: ggerganov/llama.cpp
fetch-depth: 0
ref: ${{ env.LLAMA_CPP_COMMIT }}
ref: '${{ github.input.events.llama_cpp_commit }}'
- name: Build
id: cmake_build
run: |
@@ -71,7 +70,7 @@ jobs:
with:
repository: ggerganov/llama.cpp
fetch-depth: 0
ref: ${{ env.LLAMA_CPP_COMMIT }}
ref: '${{ github.input.events.llama_cpp_commit }}'

- name: Build
id: cmake_build
@@ -102,7 +101,7 @@ jobs:
with:
repository: ggerganov/llama.cpp
fetch-depth: 0
ref: ${{ env.LLAMA_CPP_COMMIT }}
ref: '${{ github.input.events.llama_cpp_commit }}'

- uses: Jimver/cuda-toolkit@v0.2.11
if: runner.os == 'Windows'
@@ -158,7 +157,7 @@ jobs:
with:
repository: ggerganov/llama.cpp
fetch-depth: 0
ref: ${{ env.LLAMA_CPP_COMMIT }}
ref: '${{ github.input.events.llama_cpp_commit }}'
- name: Dependencies
continue-on-error: true
run: |


Loading…
Cancel
Save