Skip to content

Commit

Permalink
adapt to the newer versions of ubuntu and grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
npoltorapavlo committed Oct 17, 2024
1 parent 00e1c43 commit 54b6634
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/BuildThunder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ set -e
############################
# 1. Install Dependencies

sudo apt install -y build-essential cmake ninja-build libusb-1.0-0-dev zlib1g-dev libssl-dev
sudo apt install -y build-essential pkg-config cmake ninja-build libusb-1.0-0-dev zlib1g-dev libssl-dev

pip install jsonref
pip install --break-system-packages jsonref

############################
# 2. Build Thunder Tools
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/L0-CloudStore-grpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Generate coverage
working-directory: ${{github.workspace}}
run: |
lcov -c -o coverage.info -d build/grpcl0test
lcov -c -o coverage.info -d build/grpcl0test --ignore-errors mismatch
genhtml -o coverage coverage.info
- name: Upload artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/L0-CloudStore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Generate coverage
working-directory: ${{github.workspace}}
run: |
lcov -c -o coverage.info -d build/cloudstorel0test
lcov -c -o coverage.info -d build/cloudstorel0test --ignore-errors mismatch
genhtml -o coverage coverage.info
- name: Upload artifacts
Expand Down
4 changes: 3 additions & 1 deletion CloudStore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ add_custom_target(protoc
)
add_dependencies(${PLUGIN_IMPLEMENTATION} protoc)

target_link_libraries(${PLUGIN_IMPLEMENTATION} PRIVATE grpc++)
find_package(gRPC CONFIG REQUIRED)
target_link_libraries(${PLUGIN_IMPLEMENTATION} PRIVATE gRPC::grpc++)
#set(GRPC_CPP_PLUGIN $<TARGET_FILE:gRPC::grpc_cpp_plugin>)
find_program(GRPC_CPP_PLUGIN grpc_cpp_plugin REQUIRED)

add_custom_target(protoc-gen-grpc
Expand Down
5 changes: 3 additions & 2 deletions CloudStore/grpc/l0test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ add_custom_target(protoc
)
add_dependencies(${PROJECT_NAME} protoc)

target_link_libraries(${PROJECT_NAME} PRIVATE grpc++)
find_program(GRPC_CPP_PLUGIN grpc_cpp_plugin REQUIRED)
find_package(gRPC CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE gRPC::grpc++)
set(GRPC_CPP_PLUGIN $<TARGET_FILE:gRPC::grpc_cpp_plugin>)

add_custom_target(protoc-gen-grpc
${Protobuf_PROTOC_EXECUTABLE} --grpc_out ${CMAKE_CURRENT_BINARY_DIR} --plugin=protoc-gen-grpc=${GRPC_CPP_PLUGIN} -I ${CMAKE_CURRENT_SOURCE_DIR}/../secure_storage ${CMAKE_CURRENT_SOURCE_DIR}/../secure_storage/secure_storage.proto
Expand Down
5 changes: 3 additions & 2 deletions CloudStore/grpc/l2test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ add_custom_target(protoc
)
add_dependencies(${PROJECT_NAME} protoc)

target_link_libraries(${PROJECT_NAME} PRIVATE grpc++)
find_program(GRPC_CPP_PLUGIN grpc_cpp_plugin REQUIRED)
find_package(gRPC CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE gRPC::grpc++)
set(GRPC_CPP_PLUGIN $<TARGET_FILE:gRPC::grpc_cpp_plugin>)

add_custom_target(protoc-gen-grpc
${Protobuf_PROTOC_EXECUTABLE} --grpc_out ${CMAKE_CURRENT_BINARY_DIR} --plugin=protoc-gen-grpc=${GRPC_CPP_PLUGIN} -I ${CMAKE_CURRENT_SOURCE_DIR}/../secure_storage ${CMAKE_CURRENT_SOURCE_DIR}/../secure_storage/secure_storage.proto
Expand Down

0 comments on commit 54b6634

Please sign in to comment.