-
Notifications
You must be signed in to change notification settings - Fork 9
51 lines (44 loc) · 1.29 KB
/
developer.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
45
46
47
48
49
50
51
name: developer
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
developer:
runs-on: ubuntu-latest
env:
FC: gfortran
CC: gcc
steps:
- name: install-dependencies
run: |
sudo apt-get update
sudo apt-get install doxygen
python3 -m pip install gcovr
- name: checkout
uses: actions/checkout@v4
with:
path: g2tmpl
submodules: true
- name: build
run: |
cd g2tmpl
mkdir build
cd build
cmake -DENABLE_DOCS=ON -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -fsanitize=address -Wall -Werror" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -fsanitize=address -Wall" -DCMAKE_BUILD_TYPE=Debug ..
make -j2 VERBOSE=1
- name: test
run: |
cd $GITHUB_WORKSPACE/g2tmpl/build
ctest --verbose --output-on-failure --rerun-failed
gcovr --root .. -v --html-details --exclude ../tests --exclude CMakeFiles --print-summary -o test-coverage.html
- name: upload-test-coverage
uses: actions/upload-artifact@v2
with:
name: g2tmpl-test-coverage
path: |
g2tmpl/build/*.html
g2tmpl/build/*.css