Merge pull request #14 from mjshakir/create_singleton_manager #134
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: Ubuntu X86_64 | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [x86] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y libgtest-dev libbenchmark-dev cmake | |
- name: Setup CMake and Ninja | |
uses: lukka/[email protected] | |
- name: Check GCC Version | |
run: g++ --version | |
- name: Create build directory | |
run: mkdir build | |
- name: Configure CMake | |
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release | |
- name: Build | |
run: cmake --build build --config Release | |
- name: Test | |
working-directory: build | |
run: ctest -LE benchmark --output-on-failure | |
- name: Run PriorityQueue Benchmarks | |
run: ./build/benchmarkbin/ThreadPool_PriorityQueue_Benchmark | |
- name: Run ThreadTask Benchmarks | |
run: ./build/benchmarkbin/ThreadPool_ThreadTask_Benchmark | |
- name: Run ThreadPool Benchmarks | |
run: ./build/benchmarkbin/ThreadPool_ThreadPool_Benchmark |