💚 fix: condition #53
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: 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 |