-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1006 Bytes
/
run-tests.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
name: Run Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install -y libboost-all-dev libgtest-dev
- name: Set up Clang
run: |
sudo apt-get update
sudo apt-get install -y clang
- name: Build Application
run: |
clang++ -o cmr_cache main.cpp -I./vendor/ -I/usr/local/include/boost -L/usr/local/lib -lboost_system -lpthread -std=c++17
- name: Build Tests
run: |
clang++ -o run-tests ./tests/unit/main.cpp -I./vendor/ -I/usr/local/include/boost -I/usr/local/include/ -L/usr/local/lib/ -l:libgtest.a -l:libgtest_main.a -L/usr/local/lib -lboost_system -lpthread -std=c++17
- name: Run Tests
run: |
./run-tests
- name: Delete file
run: |
rm -fr ./run-tests