58
58
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
59
59
--slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V}
60
60
61
- - name : Compile_with_build_mkdocs
62
- if : matrix.gcc_v == 7
63
- run : |
64
- GFORTRAN=gfortran-${{matrix.gcc_v}}
65
- GCOV=gcov-${{matrix.gcc_v}}
66
- # build with build.sh, make documentation, run unit tests
67
- # and perform coverage analysis
68
- ./build.sh --coverage --skip-documentation
69
- ./build.sh --coverage --enable-unicode
70
- CODE_COVERAGE="yes"
71
- DEPLOY_DOCUMENTATION="yes"
72
-
73
61
- name : Compile_with_build
74
62
if : matrix.gcc_v != 7
75
63
run : |
@@ -78,24 +66,32 @@ jobs:
78
66
# build with build.sh, run unit tests
79
67
./build.sh --skip-documentation
80
68
./build.sh --skip-documentation --enable-unicode
81
- CODE_COVERAGE="no"
82
- DEPLOY_DOCUMENTATION="no"
83
69
84
70
- name : Compile_with_cmake
71
+ # CMake build with unit tests, no documentation, with coverage analysis
72
+ # No unicode so that coverage combined with the build script will cover unicode
73
+ # and non-unicode code paths
85
74
if : matrix.gcc_v == 9
86
75
run : |
87
76
GFORTRAN=gfortran-${{matrix.gcc_v}}
88
77
GCOV=gcov-${{matrix.gcc_v}}
89
- # CMake build with unit tests, no documentation, with coverage analysis
90
- # No unicode so that coverage combined with the build script will cover unicode
91
- # and non-unicode code paths
92
78
mkdir cmake-build
93
79
cd cmake-build
94
80
cmake ..
95
81
make -j 4 check
96
82
83
+ - name : Compile_with_build_mkdocs
84
+ # build with build.sh, make documentation, run unit tests
85
+ # and perform coverage analysis - used for doc deployment
86
+ if : matrix.gcc_v == 7
87
+ run : |
88
+ GFORTRAN=gfortran-${{matrix.gcc_v}}
89
+ GCOV=gcov-${{matrix.gcc_v}}
90
+ ./build.sh --coverage --skip-documentation
91
+ ./build.sh --coverage --enable-unicode
92
+
97
93
- name : Deploy Documentation for master
98
- if : github.ref == 'refs/heads/master' && $DEPLOY_DOCUMENTATION == 'yes '
94
+ if : matrix.gcc_v == 7 && github.ref == 'refs/heads/master '
99
95
100
96
with :
101
97
branch : gh-pages # The branch the action should deploy to.
@@ -107,7 +103,7 @@ jobs:
107
103
- name : Rebuild documentation for tagged release
108
104
env :
109
105
TAGNAME : ${{ steps.vars.outputs.tag }}
110
- if : $DEPLOY_DOCUMENTATION == 'yes' && startsWith(github.ref, 'refs/tags/')
106
+ if : matrix.gcc_v == 7 && startsWith(github.ref, 'refs/tags/')
111
107
run : |
112
108
echo ${TAGNAME}
113
109
rm -rf doc
@@ -117,15 +113,15 @@ jobs:
117
113
- name : Deploy documentation for tagged release
118
114
env :
119
115
TAGNAME : ${{ steps.vars.outputs.tag }}
120
- if : $DEPLOY_DOCUMENTATION == 'yes' && startsWith(github.ref, 'refs/tags/')
116
+ if : matrix.gcc_v == 7 && startsWith(github.ref, 'refs/tags/')
121
117
122
118
with :
123
119
branch : gh-pages # The branch the action should deploy to.
124
120
folder : doc # The folder the action should deploy.
125
121
target-folder : prev/$TAGNAME # deploy to a version-specific folder
126
122
127
123
- name : Upload coverage
128
- if : $CODE_COVERAGE == 'yes'
124
+ if : matrix.gcc_v == 7
129
125
run : |
130
126
rm json_*.F90-*unicode.gcov || true
131
127
mv json_*.F90.gcov src/
0 commit comments