diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index efd33f83..661da19d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -106,6 +106,14 @@ jobs: CROSS_TOOLCHAIN=/usr/$GNU_HOST CROSS_STAGING_PREFIX=$CROSS_TOOLCHAIN/stage CMAKE_CROSS_TOOLCHAIN=/tmp/arm.toolchain.cmake + + echo "include(FetchContent)" >> backend/cpp/llama/CMakeLists.txt + echo "FetchContent_Declare(" >> backend/cpp/llama/CMakeLists.txt + echo " googletest" >> backend/cpp/llama/CMakeLists.txt + echo " URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip" >> backend/cpp/llama/CMakeLists.txt + echo ")" >> backend/cpp/llama/CMakeLists.txt + echo "FetchContent_MakeAvailable(googletest)" >> backend/cpp/llama/CMakeLists.txt + go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@8ba23be9613c672d40ae261d2a1335d639bdd59b go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.0 export PATH=$PATH:$GOPATH/bin diff --git a/backend/cpp/llama/CMakeLists.txt b/backend/cpp/llama/CMakeLists.txt index 031e4964..38901f78 100644 --- a/backend/cpp/llama/CMakeLists.txt +++ b/backend/cpp/llama/CMakeLists.txt @@ -83,4 +83,11 @@ target_link_libraries(${TARGET} PRIVATE common llama myclip ${CMAKE_THREAD_LIBS_ target_compile_features(${TARGET} PRIVATE cxx_std_11) if(TARGET BUILD_INFO) add_dependencies(${TARGET} BUILD_INFO) -endif() \ No newline at end of file +endif() + +include(FetchContent) +FetchContent_Declare( + googletest + URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip +) +FetchContent_MakeAvailable(googletest) \ No newline at end of file