Fix race condition that causes TimerThread to hang during shutdown (#… #326
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build on Macos | |
| on: | |
| push: | |
| branches: [ master ] | |
| paths-ignore: | |
| - '**.md' | |
| pull_request: | |
| branches: [ master ] | |
| paths-ignore: | |
| - '**.md' | |
| env: | |
| proc_num: $(sysctl -n hw.logicalcpu) | |
| jobs: | |
| compile: | |
| runs-on: macos-latest # https://github.com/actions/runner-images | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: install dependences | |
| run: | | |
| brew install ./homebrew-formula/protobuf.rb | |
| brew install openssl gnu-getopt coreutils gflags leveldb | |
| - name: compile with make | |
| run: | | |
| GETOPT_PATH=$(brew --prefix gnu-getopt)/bin | |
| export PATH=$GETOPT_PATH:$PATH | |
| ./config_brpc.sh --header="$(brew --prefix)/include" --libs="$(brew --prefix)/lib" | |
| make -j ${{env.proc_num}} && make clean | |
| - name: compile with cmake | |
| run: | | |
| mkdir build && cd build && cmake .. | |
| make -j ${{env.proc_num}} && make clean | |
| compile-with-make-protobuf23: | |
| runs-on: macos-latest # https://github.com/actions/runner-images | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: install dependences | |
| run: | | |
| brew install openssl gnu-getopt coreutils gflags leveldb | |
| # abseil 20230125.3 | |
| curl -o abseil.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/b85b8dbf23ad509f163677a88ac72268f31e9c4a/Formula/abseil.rb | |
| # protobuf 23.3 | |
| curl -o protobuf.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/b85b8dbf23ad509f163677a88ac72268f31e9c4a/Formula/protobuf.rb | |
| HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --formula --ignore-dependencies ./abseil.rb ./protobuf.rb | |
| - name: compile with make | |
| run: | | |
| GETOPT_PATH=$(brew --prefix gnu-getopt)/bin | |
| export PATH=$GETOPT_PATH:$PATH | |
| ./config_brpc.sh --header="$(brew --prefix)/include" --libs="$(brew --prefix)/lib" | |
| make -j ${{env.proc_num}} && make clean | |
| - name: compile with make | |
| run: | | |
| mkdir build && cd build && cmake .. | |
| make -j ${{env.proc_num}} && make clean |