Build tests with flags -Wall -Werror -Wextra #118
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
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake pkg-config check libsubunit-dev cppcheck doxygen valgrind | |
- name: cppcheck | |
run: cppcheck --force --enable=warning,missingInclude --error-exitcode=1 . | |
- name: build | |
run: | | |
mkdir build | |
cd build | |
cmake -DBUILD_ORCANIA_TESTING=on -DBUILD_ORCANIA_DOCUMENTATION=on .. | |
make test package doc | |
sudo make install | |
cd .. | |
make | |
make clean check |