Skip to content

Commit 1a48fb0

Browse files
committed
test windows build curl static
1 parent 77d5e9a commit 1a48fb0

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed
File renamed without changes.

.github/workflows/server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ jobs:
199199
env:
200200
CURL_PATH: ${{ steps.get_libcurl.outputs.curl_path }}
201201
run: |
202-
cmake -B build -DCURL_LIBRARY="$env:CURL_PATH/lib/libcurl.dll.a" -DCURL_INCLUDE_DIR="$env:CURL_PATH/include"
202+
cmake -B build -DCURL_LIBRARY="$env:CURL_PATH/lib/libcurl.a" -DCURL_INCLUDE_DIR="$env:CURL_PATH/include"
203203
cmake --build build --config Release -j ${env:NUMBER_OF_PROCESSORS} --target llama-server
204204
205205
- name: Python setup

common/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ set(LLAMA_COMMON_EXTRA_LIBS build_info)
8585

8686
# Use curl to download model url
8787
if (LLAMA_CURL)
88+
set(CURL_USE_STATIC_LIBS TRUE)
8889
find_package(CURL)
8990
if (NOT CURL_FOUND)
9091
message(FATAL_ERROR "Could NOT find CURL. Hint: to disable this feature, set -DLLAMA_CURL=OFF")

0 commit comments

Comments
 (0)