10
10
fail-fast : false
11
11
matrix :
12
12
os : [ubuntu-latest]
13
- gcc_v : [9 ,10,11,12 ] # Version of GFortran we want to use.
13
+ gcc_v : [12 ,10,11,9 ] # Version of GFortran we want to use.
14
14
python-version : [3.11]
15
15
env :
16
16
FC : gfortran-${{matrix.gcc_v}}
@@ -19,10 +19,10 @@ jobs:
19
19
#
20
20
# GCC version
21
21
#
22
- # 9 - CMake build with unit tests, no documentation, with coverage analysis. no unicode
22
+ # 9 - build.sh with documentation, unit tests and coverage analysis. doc deployment
23
23
# 10 - build.sh - no documentation, with and without unicode.
24
24
# 11 - FPM
25
- # 12 - build.sh with documentation, unit tests and coverage analysis. doc deployment
25
+ # 12 - CMake build with unit tests, no documentation, with coverage analysis. no unicode
26
26
#
27
27
# NOTE: coverage disabled for now
28
28
34
34
submodules : recursive
35
35
36
36
- name : Setup cmake
37
- if : contains( matrix.gcc_v, 9 )
37
+ if : contains( matrix.gcc_v, 12 )
38
38
uses : jwlawson/actions-setup-cmake@v2.0.2
39
39
with :
40
40
cmake-version : ' 3.28.x'
@@ -135,7 +135,7 @@ jobs:
135
135
# CMake build with unit tests, no documentation, with coverage analysis
136
136
# No unicode so that coverage combined with the build script will cover unicode
137
137
# and non-unicode code paths
138
- if : matrix.gcc_v == 9
138
+ if : matrix.gcc_v == 12
139
139
run : |
140
140
GFORTRAN=gfortran-${{matrix.gcc_v}}
141
141
GCOV=gcov-${{matrix.gcc_v}}
@@ -147,17 +147,15 @@ jobs:
147
147
- name : Compile_with_build_mkdocs
148
148
# build with build.sh, make documentation, run unit tests
149
149
# and perform coverage analysis - used for doc deployment
150
- if : matrix.gcc_v == 12
150
+ if : matrix.gcc_v == 9
151
151
run : |
152
152
GFORTRAN=gfortran-${{matrix.gcc_v}}
153
153
GCOV=gcov-${{matrix.gcc_v}}
154
- # ./build.sh --coverage --skip-documentation # DISABLED FOR NOW
155
- # ./build.sh --coverage --enable-unicode
156
- ./build.sh --skip-documentation
157
- ./build.sh --enable-unicode
154
+ ./build.sh --coverage --skip-documentation # DISABLED FOR NOW
155
+ ./build.sh --coverage --enable-unicode
158
156
159
157
- name : Deploy Documentation for master
160
- if : matrix.gcc_v == 12 && github.ref == 'refs/heads/master'
158
+ if : matrix.gcc_v == 9 && github.ref == 'refs/heads/master'
161
159
uses : JamesIves/github-pages-deploy-action@v4.7.3
162
160
with :
163
161
branch : gh-pages # The branch the action should deploy to.
@@ -169,26 +167,26 @@ jobs:
169
167
- name : Rebuild documentation for tagged release
170
168
env :
171
169
TAGNAME : ${{github.ref_name}}
172
- if : matrix.gcc_v == 12 && startsWith(github.ref, 'refs/tags/')
170
+ if : matrix.gcc_v == 9 && startsWith(github.ref, 'refs/tags/')
173
171
run : |
174
172
echo ${TAGNAME}
175
173
rm -rf doc
176
174
sed "2 s/^/version: ${TAGNAME}\n/" json-fortran.md > json-fortran.tagged.md
177
175
ford --debug json-fortran.tagged.md
178
176
179
177
- name : Deploy documentation for tagged release
180
- if : matrix.gcc_v == 12 && startsWith(github.ref, 'refs/tags/')
178
+ if : matrix.gcc_v == 9 && startsWith(github.ref, 'refs/tags/')
181
179
uses : JamesIves/github-pages-deploy-action@v4.7.3
182
180
with :
183
181
branch : gh-pages # The branch the action should deploy to.
184
182
folder : doc # The folder the action should deploy.
185
183
target-folder : prev/${{github.ref_name}} # deploy to a version-specific folder
186
184
single-commit : true
187
185
188
- # - name: Upload coverage
189
- # if: matrix.gcc_v == 12
190
- # run: |
191
- # rm json_*.F90-*unicode.gcov || true
192
- # mv json_*.F90.gcov src/
193
- # mv jf_test*.[fF]90.gcov src/tests/
194
- # bash <(curl -s https://codecov.io/bash) -v -X $GCOV
186
+ - name : Upload coverage
187
+ if : matrix.gcc_v == 9
188
+ run : |
189
+ rm json_*.F90-*unicode.gcov || true
190
+ mv json_*.F90.gcov src/
191
+ mv jf_test*.[fF]90.gcov src/tests/
192
+ bash <(curl -s https://codecov.io/bash) -v -X $GCOV
0 commit comments