Skip to content

Commit 3acfe3e

Browse files
committed
fix(build): update LLAMA and WHISPER make options for Linux and Windows builds
1 parent ea0f366 commit 3acfe3e

1 file changed

Lines changed: 20 additions & 48 deletions

File tree

.github/workflows/main.yml

Lines changed: 20 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -18,48 +18,20 @@ jobs:
1818
- os: ubuntu-latest
1919
arch: x86_64
2020
name: linux
21-
make: LLAMA="-DGGML_NATIVE=OFF -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS -DGGML_VULKAN=ON -DGGML_OPENCL=ON"
21+
make: LLAMA="-DGGML_NATIVE=OFF -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS -DGGML_VULKAN=ON -DGGML_OPENCL=ON -DGGML_LLAMAFILE=ON"
2222
- os: LinuxARM64
2323
arch: arm64
2424
name: linux
25-
make: LLAMA="-DGGML_NATIVE=OFF -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS -DGGML_VULKAN=ON -DGGML_OPENCL=ON"
25+
make: LLAMA="-DGGML_NATIVE=OFF -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS -DGGML_VULKAN=ON -DGGML_OPENCL=ON -DGGML_LLAMAFILE=ON"
2626
- os: macos-latest
2727
name: macos
28-
make: LLAMA="-DGGML_NATIVE=ON -DGGML_METAL=ON -DGGML_ACCELERATE=ON -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=Apple" WHISPER="-DGGML_METAL=ON -DGGML_ACCELERATE=ON -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=Apple -DWHISPER_COREML=ON -DWHISPER_COREML_ALLOW_FALLBACK=ON"
28+
make: LLAMA="-DGGML_NATIVE=ON -DGGML_METAL=ON -DGGML_ACCELERATE=ON -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=Apple -DGGML_LLAMAFILE=ON" WHISPER="-DGGML_METAL=ON -DGGML_ACCELERATE=ON -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=Apple -DWHISPER_COREML=ON -DWHISPER_COREML_ALLOW_FALLBACK=ON"
2929

3030
# Windows builds
3131
- os: windows-latest
3232
arch: x86_64
33-
name: windows-cpu
34-
make: LLAMA="-DGGML_NATIVE=ON"
35-
- os: windows-latest
36-
arch: x86_64
37-
name: windows-cpu-avx2
38-
make: LLAMA="-DGGML_NATIVE=OFF -DGGML_AVX2=ON -DGGML_FMA=ON -DGGML_F16C=ON -DGGML_BMI2=ON -DGGML_SSE42=ON"
39-
- os: windows-latest
40-
arch: x86_64
41-
name: windows-cpu-avx512
42-
make: LLAMA="-DGGML_NATIVE=OFF -DGGML_AVX512=ON -DGGML_AVX512_VNNI=ON -DGGML_AVX512_VBMI=ON -DGGML_AVX512_BF16=ON"
43-
- os: windows-latest
44-
arch: x86_64
45-
name: windows-cpu-avx-vnni
46-
make: LLAMA="-DGGML_NATIVE=OFF -DGGML_AVX_VNNI=ON -DGGML_AVX2=ON -DGGML_FMA=ON -DGGML_F16C=ON"
47-
- os: windows-latest
48-
arch: x86_64
49-
name: windows-openblas
50-
make: LLAMA="-DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS"
51-
- os: windows-latest
52-
arch: x86_64
53-
name: windows-llamafile
54-
make: LLAMA="-DGGML_NATIVE=ON -DGGML_LLAMAFILE=ON"
55-
- os: windows-latest
56-
arch: x86_64
57-
name: windows-vulkan
58-
make: LLAMA="-DGGML_NATIVE=OFF -DGGML_VULKAN=ON"
59-
- os: windows-latest
60-
arch: x86_64
61-
name: windows-opencl
62-
make: LLAMA="-DGGML_NATIVE=ON -DGGML_OPENCL=ON"
33+
name: windows
34+
make: LLAMA="-DGGML_NATIVE=OFF -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS -DGGML_VULKAN=ON -DGGML_OPENCL=ON -DGGML_LLAMAFILE=ON"
6335
- os: windows-latest
6436
arch: x86_64
6537
name: windows-gpu
@@ -143,12 +115,12 @@ jobs:
143115
sqlite
144116
mingw-w64-x86_64-cc
145117
mingw-w64-x86_64-cmake
146-
${{ matrix.name == 'windows-vulkan' && 'mingw-w64-x86_64-vulkan-headers' || '' }}
147-
${{ matrix.name == 'windows-vulkan' && 'mingw-w64-x86_64-vulkan-loader' || '' }}
148-
${{ matrix.name == 'windows-vulkan' && 'mingw-w64-x86_64-shaderc' || '' }}
149-
${{ matrix.name == 'windows-openblas' && 'mingw-w64-x86_64-openblas' || '' }}
150-
${{ matrix.name == 'windows-opencl' && 'mingw-w64-x86_64-opencl-headers' || '' }}
151-
${{ matrix.name == 'windows-opencl' && 'mingw-w64-x86_64-opencl-icd' || '' }}
118+
${{ matrix.name != 'windows-gpu' && 'mingw-w64-x86_64-vulkan-headers' || '' }}
119+
${{ matrix.name != 'windows-gpu' && 'mingw-w64-x86_64-vulkan-loader' || '' }}
120+
${{ matrix.name != 'windows-gpu' && 'mingw-w64-x86_64-shaderc' || '' }}
121+
${{ matrix.name != 'windows-gpu' && 'mingw-w64-x86_64-openblas' || '' }}
122+
${{ matrix.name != 'windows-gpu' && 'mingw-w64-x86_64-opencl-headers' || '' }}
123+
${{ matrix.name != 'windows-gpu' && 'mingw-w64-x86_64-opencl-icd' || '' }}
152124
153125
- name: linux install openblas and opencl
154126
if: matrix.name == 'linux'
@@ -193,7 +165,7 @@ jobs:
193165
libvulkan-dev:arm64
194166
195167
- name: windows setup vulkan environment
196-
if: matrix.name == 'windows-vulkan'
168+
if: matrix.name == 'windows'
197169
run: |
198170
# MSYS2 Vulkan packages are already installed, just set up environment
199171
echo "VULKAN_SDK=C:/msys64/mingw64" >> $GITHUB_ENV
@@ -366,12 +338,12 @@ jobs:
366338
cp build/llama.cpp/bin/*.dll dist/ 2>/dev/null || echo "No backend DLLs found, continuing..."
367339
368340
- name: build llama.cpp (mingw/windows)
369-
if: contains(matrix.os, 'windows-') && matrix.name != 'windows-gpu' && steps.cache-llama.outputs.cache-hit != 'true'
341+
if: matrix.name == 'windows' && steps.cache-llama.outputs.cache-hit != 'true'
370342
shell: msys2 {0}
371343
run: make build/llama.cpp.stamp ${{ matrix.make && matrix.make || ''}}
372344

373345
- name: build llama.cpp (mingw/unix)
374-
if: contains(matrix.os, 'windows-') == false && steps.cache-llama.outputs.cache-hit != 'true'
346+
if: contains(matrix.os, 'windows') == false && steps.cache-llama.outputs.cache-hit != 'true'
375347
run: make build/llama.cpp.stamp ${{ matrix.make && matrix.make || ''}}
376348

377349
- name: build whisper.cpp (sycl/msvc)
@@ -392,12 +364,12 @@ jobs:
392364
make build/whisper.cpp.stamp ${{ matrix.make && matrix.make || ''}}
393365
394366
- name: build whisper.cpp (mingw/windows)
395-
if: contains(matrix.os, 'windows-') && matrix.name != 'windows-gpu' && steps.cache-whisper.outputs.cache-hit != 'true'
367+
if: matrix.name == 'windows' && steps.cache-whisper.outputs.cache-hit != 'true'
396368
shell: msys2 {0}
397369
run: make build/whisper.cpp.stamp ${{ matrix.make && matrix.make || ''}}
398370

399371
- name: build whisper.cpp (mingw/unix)
400-
if: contains(matrix.os, 'windows-') == false && steps.cache-whisper.outputs.cache-hit != 'true'
372+
if: contains(matrix.os, 'windows') == false && steps.cache-whisper.outputs.cache-hit != 'true'
401373
run: make build/whisper.cpp.stamp ${{ matrix.make && matrix.make || ''}}
402374

403375
- name: build miniaudio (sycl/msvc)
@@ -418,12 +390,12 @@ jobs:
418390
make build/miniaudio.stamp ${{ matrix.make && matrix.make || ''}}
419391
420392
- name: build miniaudio (mingw/windows)
421-
if: contains(matrix.os, 'windows-') && matrix.name != 'windows-gpu' && steps.cache-miniaudio.outputs.cache-hit != 'true'
393+
if: matrix.name == 'windows' && steps.cache-miniaudio.outputs.cache-hit != 'true'
422394
shell: msys2 {0}
423395
run: make build/miniaudio.stamp ${{ matrix.make && matrix.make || ''}}
424396

425397
- name: build miniaudio (mingw/unix)
426-
if: contains(matrix.os, 'windows-') == false && steps.cache-miniaudio.outputs.cache-hit != 'true'
398+
if: contains(matrix.os, 'windows') == false && steps.cache-miniaudio.outputs.cache-hit != 'true'
427399
run: make build/miniaudio.stamp ${{ matrix.make && matrix.make || ''}}
428400

429401
- name: windows build sqlite-ai with cuda (msvc)
@@ -467,7 +439,7 @@ jobs:
467439
run: make extension ${{ matrix.make }}
468440

469441
- name: windows build sqlite-ai (mingw)
470-
if: matrix.os == 'windows-latest' && matrix.name != 'windows-gpu'
442+
if: matrix.name == 'windows'
471443
run: make extension ${{ matrix.make && matrix.make || ''}}
472444
shell: msys2 {0}
473445

@@ -546,7 +518,7 @@ jobs:
546518
make test ${{ matrix.make && matrix.make || ''}}
547519
548520
- name: windows test sqlite-ai (mingw)
549-
if: startsWith(matrix.name, 'windows-') && matrix.name != 'windows-gpu'
521+
if: matrix.name == 'windows'
550522
run: make test ${{ matrix.make && matrix.make || ''}}
551523
shell: msys2 {0}
552524

0 commit comments

Comments
 (0)