-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (42 loc) · 1.25 KB
/
nova_cd.yml
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
35
36
37
38
39
40
41
42
43
44
name: Nova CD pipeline
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
compiler: [gcc-10]
steps:
- uses: actions/checkout@v2
- name: Pull submodules
run: git submodule update --init --recursive
- name: Set scripts permissions
run: chmod +x ./bin/*
- name: Install dependencies
run: |
./bin/deps.sh
- name: Build
run: |
rm -f build && mkdir build && pushd build && cmake .. -DENABLE_TESTS=ON && make -j`nproc` && popd
env:
CC: /usr/bin/gcc-10
CXX: /usr/bin/g++-10
- name: Run unit tests
run: |
pushd build && make test && popd
- name: Build with coverage
run: |
mkdir cov_build && pushd cov_build && cmake .. -DENABLE_TESTS=ON -DENABLE_COVERAGE=ON && make -j`nproc` && popd
env:
CC: /usr/bin/gcc-10
CXX: /usr/bin/g++-10
- name: Run unit tests on coverage build
run: |
pushd cov_build && make test && popd
- name: Generate unit tests coverage
run: |
./bin/generate-ut-cov.sh
- name: Send raport to Codecov
uses: codecov/codecov-action@v1
with:
files: ./coverage.xml