From 86f70841770ffd1fc01097e436ddbeb35c278621 Mon Sep 17 00:00:00 2001 From: Sam Reeve <6740307+streeve@users.noreply.github.com> Date: Mon, 13 Nov 2023 11:35:33 -0500 Subject: [PATCH] Use separate CI doxygen action --- .github/workflows/CI.yml | 44 ++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index aa0578a70..2e70d1d10 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -394,7 +394,6 @@ jobs: -DCabana_PERFORMANCE_EXPECTED_FLOPS=0 \ -DCabana_ENABLE_COVERAGE_BUILD=${{ matrix.coverage }} \ -DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \ - -DDOXYGEN_WARN_AS_ERROR=FAIL_ON_WARNINGS \ ${cabana_cmake_opts[@]} cmake --build build --parallel 2 --verbose CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test @@ -415,27 +414,6 @@ jobs: - name: Upload Report to codecov.io if: ${{ matrix.coverage == 'ON' }} uses: codecov/codecov-action@v1 - - name: Checkout gh-pages - if: ${{ matrix.doxygen == 'ON' }} - uses: actions/checkout@v3 - with: - ref: 'gh-pages' - path: 'html' - - name: update and commit to gh-pages branch - if: ${{ matrix.doxygen == 'ON' }} - working-directory: html - run: | - rm -rf doxygen - mv ../build/html doxygen - git config --global user.name "Automatic Deployment (GitHub Action)"; - git config --global user.email "noreply@lanl.gov" - git add --all - git diff --quiet HEAD || git commit -m "Documentation Update" - if [[ "${GITHUB_REF}" == 'refs/heads/master' ]]; then - git push - else - git show - fi HIP: defaults: @@ -584,3 +562,25 @@ jobs: -DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} cmake --build build --parallel 2 --verbose cmake --install build + + doxygen: + name: Doxygen Check and deploy + runs-on: ubuntu-latest + steps: + - name: Checkout Cabana + uses: actions/checkout@v3 + - name: Generate Cabana doxyfile + run: | + cmake -B build -DDOXYGEN_WARN_AS_ERROR=FAIL_ON_WARNINGS + cmake --build build --target doxygen + - name: Doxygen check + # This uses doxygen 1.9.6 - use new tags when available + uses: mattnotmitt/doxygen-action@edge + with: + doxyfile-path: build/Doxyfile.doxygen + - name: Doxygen deploy + uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/master' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: html