Skip to content

Commit

Permalink
Merge branch 'apache:master' into add_generation_thrift_files
Browse files Browse the repository at this point in the history
  • Loading branch information
lengyuexuexuan authored May 29, 2024
2 parents 6cbbe7d + dff1773 commit 00b8ac5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/lint_and_test_cpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,8 @@ jobs:
- name: Run server tests
uses: "./.github/actions/run_server_tests"

build_pegasus_on_macos:
name: macOS
build_release_on_macos:
name: Build Release on macOS
needs: cpp_clang_format_linter
runs-on: macos-12
steps:
Expand Down Expand Up @@ -411,3 +411,20 @@ jobs:
ccache -z
./run.sh build --test --skip_thirdparty -j $(sysctl -n hw.physicalcpu)
ccache -s
build_debug_on_centos7:
name: Build Debug on CentOS 7
needs: cpp_clang_format_linter
runs-on: ubuntu-latest
env:
USE_JEMALLOC: OFF
BUILD_OPTIONS: -t debug --test
container:
image: apache/pegasus:thirdparties-bin-centos7-${{ github.base_ref }}
steps:
- name: Clone code
uses: actions/checkout@v3
- name: Rebuild thirdparty if needed
uses: "./.github/actions/rebuild_thirdparty_if_needed"
- name: Build Pegasus
uses: "./.github/actions/build_pegasus"
7 changes: 4 additions & 3 deletions thirdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ ExternalProject_Add(fmt
)

set(CURL_OPTIONS
--enable-shared
--disable-dict
--disable-file
--disable-ftp
Expand All @@ -246,11 +245,11 @@ set(CURL_OPTIONS
--disable-manual
--disable-pop3
--disable-rtsp
--disable-shared
--disable-smtp
--disable-telnet
--disable-tftp
--without-brotli
--without-libidn
--without-libidn2
--without-librtmp
--without-libssh2
Expand All @@ -269,7 +268,7 @@ ExternalProject_Add(curl
URL ${OSS_URL_PREFIX}/curl-8.4.0.tar.gz
http://curl.haxx.se/download/curl-8.4.0.tar.gz
URL_MD5 533e8a3b1228d5945a6a512537bea4c7
CONFIGURE_COMMAND ./configure --prefix=${TP_OUTPUT}
CONFIGURE_COMMAND CFLAGS=-fPIC CPPFLAGS=-fPIC ./configure --prefix=${TP_OUTPUT}
${CURL_OPTIONS}
BUILD_IN_SOURCE 1
DOWNLOAD_EXTRACT_TIMESTAMP true
Expand All @@ -282,6 +281,8 @@ ExternalProject_Add(prometheus-cpp
URL_MD5 cdb515e802aa9aaaf1f6dde1271a20a2
DEPENDS curl
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${TP_OUTPUT}
-DCMAKE_C_FLAGS=-fPIC
-DCMAKE_CXX_FLAGS=-fPIC
-DENABLE_TESTING=OFF
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
Expand Down

0 comments on commit 00b8ac5

Please sign in to comment.