Skip to content

Commit fa4be76

Browse files
committed
Fix static build instructions (see ggml-org/llama.cpp#8006)
1 parent 879b185 commit fa4be76

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ jobs:
2929
- ssl: ssl
3030
ssl_defines: '-DLLAMA_SERVER_SSL=ON -DOPENSSL_USE_STATIC_LIBS=ON'
3131
- avx: noavx
32-
avx_defines: '-DLLAMA_AVX=OFF -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF'
32+
avx_defines: '-DGGML_AVX=OFF -DGGML_AVX2=OFF -DGGML_FMA=OFF'
3333
- avx: avx
34-
avx_defines: '-DLLAMA_AVX2=OFF'
34+
avx_defines: '-DGGML_AVX2=OFF'
3535
- avx: avx2
3636
avx_defines: ''
3737
- avx: avx512
38-
avx_defines: '-DLLAMA_AVX512=ON'
38+
avx_defines: '-DGGML_AVX512=ON'
3939

4040
steps:
4141
- name: Checkout
@@ -58,7 +58,7 @@ jobs:
5858

5959
- name: CMake
6060
run: |
61-
cmake repo -B build -DCMAKE_BUILD_TYPE=Release -DLLAMA_NATIVE=OFF -DLLAMA_STATIC=ON -DLLAMA_BUILD_SERVER=ON -DLLAMA_OPENMP=OFF ${{ matrix.ssl_defines }} ${{ matrix.avx_defines }}
61+
cmake repo -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS="-static" -DGGML_NATIVE=OFF -DGGML_STATIC=ON -DGGML_OPENMP=OFF -DLLAMA_BUILD_SERVER=ON -DBUILD_SHARED_LIBS=OFF ${{ matrix.ssl_defines }} ${{ matrix.avx_defines }}
6262
cmake --build build --config Release --target llama-server -j ${{ steps.cpu-cores.outputs.count }}
6363
strip build/bin/llama-server
6464
shell: alpine.sh {0}

0 commit comments

Comments
 (0)