Skip to content

Commit 4d8e164

Browse files
committed
fix(workflow): update Windows build steps for sqlite-ai with CUDA and refine make command
1 parent 6a0d7a1 commit 4d8e164

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
- os: windows-latest
109109
arch: x86_64
110110
name: windows-hip
111-
make: LLAMA="-DGGML_NATIVE=OFF -DGGML_CPU=OFF -DGGML_HIP=ON -DGGML_HIP_ROCWMMA_FATTN=ON -DAMDGPU_TARGETS=\"gfx1100;gfx1101;gfx1102;gfx1030;gfx1031;gfx1032\" -DCMAKE_C_COMPILER=\"$HIP_PATH/bin/clang.exe\" -DCMAKE_CXX_COMPILER=\"$HIP_PATH/bin/clang++.exe\" -DCMAKE_CXX_FLAGS=\"-I$(pwd)/rocwmma/library/include/\""
111+
make: LLAMA="-DGGML_NATIVE=OFF -DGGML_CPU=OFF -DGGML_HIP=ON -DGGML_HIP_ROCWMMA_FATTN=ON -DAMDGPU_TARGETS=\"gfx1100;gfx1101;gfx1102;gfx1030;gfx1031;gfx1032\" -DCMAKE_CXX_FLAGS=\"-I$(pwd)/rocwmma/library/include/\""
112112

113113
# Android builds
114114
- os: ubuntu-latest
@@ -216,11 +216,12 @@ jobs:
216216
with:
217217
cuda_version: '12.4'
218218

219-
- name: windows build llama.cpp with cuda and msvc
219+
- name: windows build sqlite-ai with cuda
220220
if: matrix.name == 'windows-cuda'
221-
run: make extension ${{ matrix.make && matrix.make || ''}}
222-
continue-on-error: true
223-
shell: pwsh
221+
run: |
222+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
223+
D:\a\_temp\msys64\usr\bin\make.exe extension ${{ matrix.make && matrix.make || ''}}
224+
shell: cmd
224225

225226
- name: windows install hip toolkit
226227
if: matrix.name == 'windows-hip'
@@ -242,7 +243,7 @@ jobs:
242243
shell: pwsh
243244

244245
- name: windows build sqlite-ai
245-
if: matrix.os == 'windows-latest'
246+
if: matrix.os == 'windows-latest' && matrix.name != 'windows-cuda'
246247
run: make extension ${{ matrix.make && matrix.make || ''}}
247248
shell: msys2 {0}
248249
env:

0 commit comments

Comments
 (0)