-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (33 loc) · 1.09 KB
/
ubuntu_X86_64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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