From 9b4a5531e04927f94034466240072a01fea38902 Mon Sep 17 00:00:00 2001 From: cianciosa Date: Wed, 3 Sep 2025 12:29:08 -0400 Subject: [PATCH] Add doxygen generation and disable macOS runner. --- .github/workflows/ci_doxygen.yaml | 47 +++++++++++++++++++++++++++++++ .github/workflows/ci_test.yaml | 2 +- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci_doxygen.yaml diff --git a/.github/workflows/ci_doxygen.yaml b/.github/workflows/ci_doxygen.yaml new file mode 100644 index 0000000..19510f6 --- /dev/null +++ b/.github/workflows/ci_doxygen.yaml @@ -0,0 +1,47 @@ +name: Build Documentation +on: + workflow_dispatch: + push: + branches: + - 'main' +jobs: + ci_doxygen: + if: ${{github.ref_name}} == 'main' + runs-on: ubuntu-latest + steps: + - name: Clone Repo + shell: bash + working-directory: ${{runner.workspace}} + run: | + git clone https://github.com/ORNL-Fusion/graph_framework ${{runner.workspace}}/graph_framework + git clone https://token:${{secrets.AUTH_TOKEN}}@github.com/ORNL-Fusion/graph_framework-docs + - name: Create build directory. + shell: bash + working-directory: ${{runner.workspace}}/graph_framework + run: cmake -E make_directory build + - name: Install Libraries Linux + shell: bash + run: | + sudo apt update + sudo apt-get install libnetcdf-dev + sudo apt-get install doxygen + - name: Configure CMake + shell: bash + working-directory: ${{runner.workspace}}/graph_framework/build + run: cmake -DDOXYGEN_OUTPUT_DIRECTORY=${{runner.workspace}}/graph_framework-docs -DDOXYGEN_HTML_OUTPUT=docs ../ + - name: Build + shell: bash + working-directory: ${{runner.workspace}}/graph_framework/build + run: make doc + - name: Push changes. + shell: bash + working-directory: ${{runner.workspace}}/graph_framework-docs/docs + env: + GITHUB_TOKEN: ${{secrets.AUTH_TOKEN}} + run: | + git config user.name ${{secrets.AUTH_USER}} + git config user.email ${{secrets.AUTH_EMAIL}} + git add * + git commit . -m "Update Doxygen docs." + git push origin main --force + diff --git a/.github/workflows/ci_test.yaml b/.github/workflows/ci_test.yaml index 35243bd..0d0fb69 100644 --- a/.github/workflows/ci_test.yaml +++ b/.github/workflows/ci_test.yaml @@ -6,7 +6,7 @@ jobs: ci_test: strategy: matrix: - os: [macos-latest, ubuntu-latest] + os: [ubuntu-latest] runs-on: ${{matrix.os}} steps: - name: CPU Info Mac -- GitLab