Skip to content

Commit 0d437cf

Browse files
fix up GCC.yml
1 parent e6c41db commit 0d437cf

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/GCC.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626

2727
steps:
2828

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+
2934
- name: apt-install
3035
run: |
3136
sudo apt-get install gcovr doxygen graphviz
@@ -62,7 +67,7 @@ jobs:
6267
6368
- name: cache-save
6469
uses: actions/cache/save@v3
65-
if: ${{ ${{ env.spackrc }} == 0 }}
70+
if: ${{ (env.spackrc) == 0 }}
6671
with:
6772
path: ${{ github.workspace }}/spack-develop
6873
key: spack-${{ hashFiles('fv3atm/ci/spack.yaml') }}-gcc11-2
@@ -78,7 +83,7 @@ jobs:
7883
sed -i 's/doc /upp_doc /' upp/docs/CMakeLists.txt
7984
mkdir ${GITHUB_WORKSPACE}/fv3atm/build
8085
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 }}
8287
make -j2
8388
ls -l /home/runner/work/fv3atm/fv3atm/fv3atm/io
8489
@@ -102,6 +107,7 @@ jobs:
102107
${{ github.workspace }}/fv3atm/build/*.css
103108
104109
- uses: actions/upload-artifact@v4
110+
if: ${{ env.builddocs == 'ON' }}
105111
with:
106112
name: docs
107113
path: |

0 commit comments

Comments
 (0)