This is an automated email from the ASF dual-hosted git repository. jiashunzhu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git
The following commit(s) were added to refs/heads/master by this push: new d8b21d7c Linux workflow (#2008) d8b21d7c is described below commit d8b21d7c9037b752e839b2fb45531763909fb0c1 Author: 果冻虾仁 <guod...@apache.org> AuthorDate: Thu Nov 24 03:37:23 2022 +0800 Linux workflow (#2008) Support compile-with-make, compile-with-cmake, compile-with-bazel for Linux in Github Actions --- .github/workflows/ci_linux.yml | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/.github/workflows/ci_linux.yml b/.github/workflows/ci_linux.yml new file mode 100644 index 00000000..f470b2b2 --- /dev/null +++ b/.github/workflows/ci_linux.yml @@ -0,0 +1,60 @@ +name: Build and Test on Linux + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + proc_num: $(nproc) + +jobs: + compile-with-make: + runs-on: ubuntu-latest # https://github.com/actions/runner-images + + steps: + - uses: actions/checkout@v2 + + - name: install dependences + run: | + sudo apt-get install -y git g++ make libssl-dev libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev libgoogle-perftools-dev + - name: config_brpc + run: | + ./config_brpc.sh --header="/usr/local/include /usr/include" --libs="/usr/local/lib /usr/local/lib64 /usr/lib /usr/lib64" + - name: compile + run: | + make -j ${{env.proc_num}} + + compile-with-cmake: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: install dependences + run: | + sudo apt-get install -y git g++ make libssl-dev libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev + - name: cmake + run: | + mkdir build + cd build + cmake .. + - name: compile + run: | + cd build + make -j ${{env.proc_num}} + + compile-with-bazel: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: install dependences + run: | + sudo apt-get update + sudo apt-get install libibverbs-dev + - name: compile + run: | + bazel build -j ${{env.proc_num}} -c opt --copt -DHAVE_ZLIB=1 //... --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org