Skip to content
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
27 changes: 27 additions & 0 deletions .github/actions/compile-with-make-protobuf/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
inputs:
protobuf-version:
description: version of protobuf
required: true
protobuf-cpp-version:
description: version of protobuf-cpp
required: true
protobuf-install-dir:
description: install directory of protobuf
required: true
config-brpc-options:
description: extra options for config_brpc.sh
required: true
runs:
using: "composite"
steps:
- run: |
wget https://github.com/protocolbuffers/protobuf/releases/download/v${{inputs.protobuf-version}}/protobuf-cpp-${{inputs.protobuf-cpp-version}}.tar.gz
tar -xf protobuf-cpp-${{inputs.protobuf-cpp-version}}.tar.gz
cd protobuf-${{inputs.protobuf-cpp-version}}
./configure --prefix=${{inputs.protobuf-install-dir}} --with-pic --disable-java --disable-python --disable-other-languages
sudo mkdir ${{inputs.protobuf-install-dir}}
make -j ${{env.proc_num}} && sudo make install
shell: bash
- uses: ./.github/actions/compile-with-make
with:
options: --headers="${{inputs.protobuf-install-dir}}/include /usr/include" --libs="${{inputs.protobuf-install-dir}} /usr/lib /usr/lib64" ${{inputs.config-brpc-options}}
11 changes: 11 additions & 0 deletions .github/actions/compile-with-make/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
inputs:
options:
description: extra options for config_brpc.sh
required: false
runs:
using: "composite"
steps:
- run: |
sh config_brpc.sh --nodebugsymbols ${{inputs.options}}
cat config.mk && make clean && make -j ${{env.proc_num}}
shell: bash
9 changes: 0 additions & 9 deletions .github/actions/init-make-config/action.yml

This file was deleted.

27 changes: 19 additions & 8 deletions .github/actions/init-ut-make-config/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ inputs:
runs:
using: "composite"
steps:
- run: sudo apt-get update && sudo apt-get install -y clang-12 lldb-12 lld-12 libgtest-dev cmake gdb libstdc++6-11-dbg && cd /usr/src/gtest && export CC=clang-12 && export CXX=clang++-12 && sudo cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 . && sudo make -j ${{env.proc_num}} && sudo mv lib/libgtest* /usr/lib/
shell: bash
- run: sudo git clone https://github.com/libunwind/libunwind.git && cd libunwind && sudo git checkout tags/v1.8.1 && sudo mkdir -p /libunwind && sudo autoreconf -i && sudo CC=clang-12 CXX=clang++-12 ./configure --prefix=/libunwind && sudo make -j ${{env.proc_num}} && sudo make install
shell: bash
- run: sudo git clone https://github.com/gperftools/gperftools.git && cd gperftools && sudo git checkout tags/gperftools-2.16 && sudo mkdir -p /gperftools && sudo ./autogen.sh && sudo CC=clang-12 CXX=clang++-12 ./configure --prefix=/gperftools --enable-frame-pointers && sudo make -j ${{env.proc_num}} && sudo make install
shell: bash
- run: sh config_brpc.sh --headers="/libunwind/include /gperftools/include /usr/include" --libs="/libunwind/lib /gperftools/lib /usr/lib /usr/lib64" ${{inputs.options}}
shell: bash
- run: |
sudo apt-get update && sudo apt-get install -y clang-12 lldb-12 lld-12 libgtest-dev cmake gdb libstdc++6-11-dbg
cd /usr/src/gtest && export CC=clang-12 && export CXX=clang++-12 && sudo cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 .
sudo make -j ${{env.proc_num}} && sudo mv lib/libgtest* /usr/lib/
shell: bash
- run: |
sudo git clone https://github.com/libunwind/libunwind.git
cd libunwind && sudo git checkout tags/v1.8.1 && sudo mkdir -p /libunwind
sudo autoreconf -i && sudo CC=clang-12 CXX=clang++-12 ./configure --prefix=/libunwind
sudo make -j ${{env.proc_num}} && sudo make install
shell: bash
- run: |
sudo git clone https://github.com/gperftools/gperftools.git
cd gperftools && sudo git checkout tags/gperftools-2.16 && sudo mkdir -p /gperftools
sudo ./autogen.sh && sudo CC=clang-12 CXX=clang++-12 ./configure --prefix=/gperftools --enable-frame-pointers
sudo make -j ${{env.proc_num}} && sudo make install
shell: bash
- run: sh config_brpc.sh --headers="/libunwind/include /gperftools/include /usr/include" --libs="/libunwind/lib /gperftools/lib /usr/lib /usr/lib64" ${{inputs.options}}
shell: bash
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
runs:
using: "composite"
steps:
- uses: ./.github/actions/install-essential-dependences
- uses: ./.github/actions/install-essential-dependencies
- run: sudo apt-get install -y libunwind-dev libgoogle-glog-dev automake bison flex libboost-all-dev libevent-dev libtool pkg-config libibverbs1 libibverbs-dev
shell: bash
- run: wget https://archive.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz && tar -xf thrift-0.11.0.tar.gz
shell: bash
- run: cd thrift-0.11.0/ && ./configure --prefix=/usr --with-rs=no --with-ruby=no --with-python=no --with-java=no --with-go=no --with-perl=no --with-php=no --with-csharp=no --with-erlang=no --with-lua=no --with-nodejs=no --with-haskell=no --with-dotnetcore=no CXXFLAGS="-Wno-unused-variable" && make -j $(nproc) && sudo make install
- run: cd thrift-0.11.0/ && ./configure --prefix=/usr --with-rs=no --with-ruby=no --with-python=no --with-java=no --with-go=no --with-perl=no --with-php=no --with-csharp=no --with-erlang=no --with-lua=no --with-nodejs=no --with-haskell=no --with-dotnetcore=no CXXFLAGS="-Wno-unused-variable" && make -j ${{env.proc_num}} && sudo make install
shell: bash
Loading
Loading