Merge pull request #406 from rosflight/remove-docs #139
Workflow file for this run
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: Unit Tests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: clone | |
run: git submodule update --init --recursive | |
- name: apt install | |
run: sudo apt-get install -y build-essential cmake libgtest-dev libeigen3-dev | |
- name: install gtest | |
run: | | |
cd /usr/src/gtest | |
sudo cmake CMakeLists.txt | |
sudo make | |
sudo cp ./lib/libgtest*.a /usr/lib | |
- name: cmake | |
run: | | |
cd test | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_BUILD_TYPE=Release | |
- name: make | |
run: | | |
cd test/build | |
make | |
- name: test | |
run: | | |
cd test/build | |
./unit_tests |