generated from smiths/capTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.04 KB
/
ci.yaml
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
27
28
29
30
31
32
33
34
name: C/C++ CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-unittest:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: |
.github
src
test
- name: Install dependencies
run: sudo apt-get install -y cmake lcov cppcheck
- 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