Skip to content

Commit 0faae7f

Browse files
committed
fix(build): change shell to cmd for llama.cpp build on windows-gpu
1 parent 73d678c commit 0faae7f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,10 +392,11 @@ jobs:
392392
ls -la build/llama.cpp/bin/
393393
fi
394394
395-
- name: build llama.cpp main library (mingw)
395+
- name: build llama.cpp main library (msvc)
396396
if: matrix.name == 'windows-gpu' && steps.cache-llama.outputs.cache-hit != 'true'
397-
shell: msys2 {0}
397+
shell: cmd
398398
run: |
399+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
399400
make build/llama.cpp.stamp ${{ matrix.make }} LLAMA_ARGS="--target common"
400401
make build/llama.cpp.stamp ${{ matrix.make }} LLAMA_ARGS="--target llama"
401402
make build/llama.cpp.stamp ${{ matrix.make }} LLAMA_ARGS="--target ggml"

0 commit comments

Comments
 (0)