File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 26
26
27
27
steps :
28
28
29
+ - name : decide-doc-build
30
+ run : |
31
+ if [[ ${{ matrix.cmake_opts }} == "-D32BIT=ON" && ${{ matrix.gcc }} == 11 && ${{ matrix.mpi == "mpich" }} ]]; then
32
+ echo 'builddocs=ON' >> ${GITHUB_ENV}
33
+
29
34
- name : apt-install
30
35
run : |
31
36
sudo apt-get install gcovr doxygen graphviz
62
67
63
68
- name : cache-save
64
69
uses : actions/cache/save@v3
65
- if : ${{ ${{ env.spackrc }} == 0 }}
70
+ if : ${{ ( env.spackrc) == 0 }}
66
71
with :
67
72
path : ${{ github.workspace }}/spack-develop
68
73
key : spack-${{ hashFiles('fv3atm/ci/spack.yaml') }}-gcc11-2
78
83
sed -i 's/doc /upp_doc /' upp/docs/CMakeLists.txt
79
84
mkdir ${GITHUB_WORKSPACE}/fv3atm/build
80
85
cd ${GITHUB_WORKSPACE}/fv3atm/build
81
- cmake ${GITHUB_WORKSPACE}/fv3atm -DBUILD_TESTING=ON ${{ matrix.cmake_opts }} -DENABLE_DOCS=ON
86
+ cmake ${GITHUB_WORKSPACE}/fv3atm -DBUILD_TESTING=ON ${{ matrix.cmake_opts }} -DENABLE_DOCS=${{ env.builddocs }}
82
87
make -j2
83
88
ls -l /home/runner/work/fv3atm/fv3atm/fv3atm/io
84
89
@@ -102,6 +107,7 @@ jobs:
102
107
${{ github.workspace }}/fv3atm/build/*.css
103
108
104
109
- uses : actions/upload-artifact@v4
110
+ if : ${{ env.builddocs == 'ON' }}
105
111
with :
106
112
name : docs
107
113
path : |
You can’t perform that action at this time.
0 commit comments