Add filter implementation and modules #45
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: C/C++ CI # The name of the workflow | |
on: # The trigger for the workflow | |
push: # When you push to any branch | |
branches: [ main ] # Only for the main branch | |
pull_request: # When you create or update a pull request | |
branches: [ main ] # Only for the main branch | |
jobs: # The jobs for the workflow | |
build-and-unittest: # The name of the job | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest # The operating system to run the job on | |
steps: # The steps for the job | |
- name: Checkout # The name of the step | |
# uses: actions/checkout@v2 # The action to use for the step | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
.github | |
src | |
test | |
- name: Install dependencies # The name of the step | |
run: sudo apt-get install -y cmake lcov cppcheck # The command to run for the step | |
- name: Install Eigen3 | |
run: sudo apt-get install -y libeigen3-dev && sudo ln -s /usr/include/eigen3/Eigen /usr/local/include/Eigen | |
- name: Install gtest | |
run: sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo cmake CMakeLists.txt | |
- name: Run custom build script | |
run: bash ./build.sh test | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: coverage.info # The coverage report file generated by gcov or lcov | |
slug: adrian-soch/attitude_check |