Skip to content

Commit

Permalink
Update doxygen workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Iandiehard committed Oct 2, 2023
1 parent ccf1283 commit 1f18615
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 10 deletions.
36 changes: 26 additions & 10 deletions .github/workflows/doxygen-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,35 @@
name: Doxygen GitHub Pages Deploy Action
name: Doxygen Action

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
deploy:
build:
runs-on: ubuntu-latest
steps:
- uses: DenverCoder1/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: docs/html
config_file: docs/Doxyfile
- uses: actions/checkout@v2
- name: Check Dir
run: ls docs/
#- name: Doxygen Action
# uses: mattnotmitt/[email protected]
# with:
# working-directory: "."
# doxyfile-path: "docs/Doxyfile"

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_DIAG_CLIENT:BOOL=OFF -DBUILD_DOXYGEN:BOOL=ON -DCMAKE_TOOLCHAIN_FILE=toolchains/linux_gcc_9.cmake

- name: Build
# Build your program with the given configuration
run: |
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
ls ${{github.workspace}}/build/
ls ${{github.workspace}}/build/docs/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./generated-docs/html
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cmake_minimum_required(VERSION 3.5)
project(diag-client)

# Cmake options
option(BUILD_DIAG_CLIENT "Option to use Dlt for logging" ON)
option(BUILD_SHARED_LIBS "Option to build as shared library" OFF)
option(BUILD_WITH_DLT "Option to use Dlt for logging" OFF)
option(BUILD_DOXYGEN "Option to generate doxygen file" OFF)
Expand All @@ -24,7 +25,9 @@ if (BUILD_WITH_DLT)
endif (BUILD_WITH_DLT)

# Build diag-client library
if (BUILD_DIAG_CLIENT)
add_subdirectory(diag-client-lib)
endif (BUILD_DIAG_CLIENT)

# Build diag-client doxygen documentation
if (BUILD_DOXYGEN)
Expand Down

0 comments on commit 1f18615

Please sign in to comment.