Implement file-based leader election method #24
This file contains 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: Tests | |
on: [pull_request] | |
jobs: | |
unit-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04] | |
compiler: [[gcc, g++], [clang, clang++]] | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgoogle-perftools-dev libunwind-dev | |
- name: Build | |
run: | | |
$CC --version | |
$CXX --version | |
make -j $(nproc) CC=$CC CXX=$CXX OPTFLAGS="-O2 -fPIE" | |
./yrmcdsd & | |
sleep 1 | |
env: | |
CC: ${{ matrix.compiler[0] }} | |
CXX: ${{ matrix.compiler[1] }} | |
- name: Run tests | |
run: | | |
make YRMCDS_SERVER=localhost tests |