-
-
Notifications
You must be signed in to change notification settings - Fork 46
26 lines (25 loc) · 783 Bytes
/
Copy pathroutine-exam.yml
File metadata and controls
26 lines (25 loc) · 783 Bytes
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
name: Routine Exam
on: [push, pull_request]
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt-get install -y libgtest-dev libfmt-dev libspdlog-dev libpng-dev
&& cd /usr/src/gtest
&& CXX=g++ sudo cmake CMakeLists.txt
&& sudo make -j
&& sudo cp lib/*a /usr/lib
&& sudo ln -s /usr/lib/libgtest.a /usr/local/lib/libgtest.a
&& sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/libgtest_main.a
- uses: actions/checkout@v2
- name: Configure project
run: mkdir build
&& cd build
&& CXX=g++ cmake ..
- name: Build project
run: cd build
&& make -j run_tests
- name: Run tests
run: ./build/bin/run_tests