-
Notifications
You must be signed in to change notification settings - Fork 8
69 lines (59 loc) · 1.88 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This is a CI workflow for the NCEPLIBS-w3emc project.
#
# This workflow builds with all developer options, including address
# sanitizer and code coverage.
#
# Ed Hartnett, 1/8/23
name: developer
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
developer:
runs-on: ubuntu-latest
env:
FC: gfortran-11
CC: gcc-11
steps:
- name: install-dependencies
run: |
sudo apt-get install doxygen
python3 -m pip install gcovr
- name: "Build dependencies"
uses: NOAA-EMC/ci-build-nceplibs@develop
with:
bacio-version: develop
bufr-version: bufr_v11.7.1
- name: checkout-w3emc
uses: actions/checkout@v4
with:
path: w3emc
- name: build-w3emc
run: |
set -x
doxygen --version
cmake -S w3emc -B w3emc/build -DCMAKE_INSTALL_PREFIX="~/w1" -DCMAKE_PREFIX_PATH="$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-bacio;$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-bufr" -DENABLE_DOCS=ON -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0 -fsanitize=address -Wall" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0 -fsanitize=address -Wall" -DCMAKE_BUILD_TYPE=Debug -DBUILD_8=ON
cmake --build w3emc/build --parallel 2
- name: test-w3emc
run: |
ctest --test-dir w3emc/build --output-on-failure --rerun-failed --verbose
cmake --install w3emc/build
ls -l ~/w1
ls -l ~/w1/lib
- name: generate-test-coverage
run: gcovr --root w3emc -v --html-details --exclude w3emc/tests --exclude w3emc/build/CMakeFiles --print-summary -o test-coverage.html &> /dev/null
- uses: actions/upload-artifact@v4
with:
name: w3emc-test-coverage
path: |
*.html
*.css
- uses: actions/upload-artifact@v4
with:
name: docs
path: |
w3emc/build/docs/html