From 56a90adaa423e2f6278cf3259d674e5d24332054 Mon Sep 17 00:00:00 2001 From: Dongsheng He Date: Thu, 28 Sep 2023 10:16:33 +0800 Subject: [PATCH] add boringssl compile bazel ci --- .github/workflows/ci-linux.yml | 7 ++++++- cmake/FindBoringSSL.cmake | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 09f0d3cbf8..56297d993b 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -95,7 +95,9 @@ jobs: run: | export CC=gcc && export CXX=g++ bazel build -j 12 -c opt --define with_mesalink=false --define with_glog=true --define with_thrift=true --copt -DHAVE_ZLIB=1 //... - + - name: compile-with-boringssl + run: | + bazel build -j 12 -c opt --define with_mesalink=false --define with_glog=true --define with_thrift=true --define BRPC_WITH_BORINGSSL=true --copt -DHAVE_ZLIB=1 //... clang-compile-with-make: runs-on: ubuntu-20.04 @@ -178,6 +180,9 @@ jobs: run: | export CC=clang && export CXX=clang++ bazel build -j ${{env.proc_num}} -c opt --define with_mesalink=false --define with_glog=true --define with_thrift=true --copt -DHAVE_ZLIB=1 //... + - name: compile-with-boringssl + run: | + bazel build -j ${{env.proc_num}} -c opt --define with_mesalink=false --define with_glog=true --define with_thrift=true --define BRPC_WITH_BORINGSSL=true --copt -DHAVE_ZLIB=1 //... clang-unittest: runs-on: ubuntu-20.04 diff --git a/cmake/FindBoringSSL.cmake b/cmake/FindBoringSSL.cmake index 26ce19a62b..b475f0aa5d 100644 --- a/cmake/FindBoringSSL.cmake +++ b/cmake/FindBoringSSL.cmake @@ -72,4 +72,6 @@ mark_as_advanced( BORINGSSL_LIBRARIES BORINGSSL_CRYPTO_LIBRARY BORINGSSL_SSL_LIBRARY -) \ No newline at end of file +) + +set(CMAKE_FIND_LIBRARY_SUFFIXES ${_boringssl_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})