Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,6 @@ jobs:
run: |
robocopy build_deps\_install\bin .\build\Release zlib.dll
robocopy build\bin\Release .\build\Release llama.dll
robocopy ext_libs .\build\Release libcrypto-3-x64.dll
robocopy ext_libs .\build\Release libssl-3-x64.dll
7z a nitro.zip .\build\Release\*

- uses: actions/upload-release-asset@v1.0.1
Expand Down Expand Up @@ -325,7 +323,7 @@ jobs:
cmake --build ./build_deps/nitro_deps --config Release
mkdir -p build
cd build
cmake .. -DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_CUBLAS=ON -DBUILD_SHARED_LIBS=ON
cmake .. -DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_CUBLAS=ON
cmake --build . --config Release -j 4

- name: Pack artifacts
Expand All @@ -336,8 +334,6 @@ jobs:
echo %PATH%
robocopy build_deps\_install\bin .\build\Release zlib.dll
robocopy build\bin\Release .\build\Release llama.dll
robocopy ext_libs .\build\Release libcrypto-3-x64.dll
robocopy ext_libs .\build\Release libssl-3-x64.dll
7z a nitro.zip .\build\Release\*

- uses: actions/upload-release-asset@v1.0.1
Expand Down
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ else()
set(CMAKE_CXX_STANDARD 14)
endif()

# llama cpp server need llava example to work, this is for llama cpp server
set(LLAMA_BUILD_EXAMPLES ON)

set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(OPENSSL_USE_STATIC_LIBS TRUE)
Expand Down Expand Up @@ -48,7 +51,7 @@ add_executable(${PROJECT_NAME} main.cc)
#
# and comment out the following lines
find_package(Drogon CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE Drogon::Drogon common llama
target_link_libraries(${PROJECT_NAME} PRIVATE Drogon::Drogon common llama clip
${CMAKE_THREAD_LIBS_INIT})

# ##############################################################################
Expand Down
Loading