From 147fdf812ab4e313a0a13afd41441256f19ee86a Mon Sep 17 00:00:00 2001 From: Tadej Novak Date: Fri, 2 Aug 2024 20:06:01 +0200 Subject: [PATCH] Add docs CI test and ignore docs folder in other workflows --- .github/workflows/Android.yml | 2 ++ .github/workflows/Linux.yml | 2 ++ .github/workflows/Windows.yml | 2 ++ .github/workflows/docs-test.yml | 38 +++++++++++++++++++++++++++++++++ .github/workflows/iOS.yml | 2 ++ .github/workflows/macOS.yml | 2 ++ 6 files changed, 48 insertions(+) create mode 100644 .github/workflows/docs-test.yml diff --git a/.github/workflows/Android.yml b/.github/workflows/Android.yml index d2da989..92e18c3 100644 --- a/.github/workflows/Android.yml +++ b/.github/workflows/Android.yml @@ -10,6 +10,7 @@ on: paths-ignore: - ".gitignore" - "README.md" + - "docs/**" # ignore CI for other platforms - ".github/FUNDING.yml" - ".github/actions/**" @@ -24,6 +25,7 @@ on: paths-ignore: - ".gitignore" - "README.md" + - "docs/**" # ignore CI for other platforms - ".github/FUNDING.yml" - ".github/actions/**" diff --git a/.github/workflows/Linux.yml b/.github/workflows/Linux.yml index 120658f..6049dc9 100644 --- a/.github/workflows/Linux.yml +++ b/.github/workflows/Linux.yml @@ -10,6 +10,7 @@ on: paths-ignore: - ".gitignore" - "README.md" + - "docs/**" # ignore CI for other platforms - ".github/FUNDING.yml" - ".github/workflows/Android.yml" @@ -23,6 +24,7 @@ on: paths-ignore: - ".gitignore" - "README.md" + - "docs/**" # ignore CI for other platforms - ".github/FUNDING.yml" - ".github/workflows/Android.yml" diff --git a/.github/workflows/Windows.yml b/.github/workflows/Windows.yml index ed8fe2b..eda37b8 100644 --- a/.github/workflows/Windows.yml +++ b/.github/workflows/Windows.yml @@ -10,6 +10,7 @@ on: paths-ignore: - ".gitignore" - "README.md" + - "docs/**" # ignore CI for other platforms - ".github/FUNDING.yml" - ".github/actions/**" @@ -24,6 +25,7 @@ on: paths-ignore: - ".gitignore" - "README.md" + - "docs/**" # ignore CI for other platforms - ".github/FUNDING.yml" - ".github/actions/**" diff --git a/.github/workflows/docs-test.yml b/.github/workflows/docs-test.yml new file mode 100644 index 0000000..48b95ff --- /dev/null +++ b/.github/workflows/docs-test.yml @@ -0,0 +1,38 @@ +name: Docs Test + +on: + workflow_dispatch: + push: + branches: + - main + tags: + - "**" + paths: + - "src/**" + - "docs/**" + + pull_request: + branches: + - main + paths-ignore: + - "src/**" + - "docs/**" + +jobs: + doxygen: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: true + fetch-depth: 0 + + - name: Install Doxygen + uses: ssciwr/doxygen-install@v1 + with: + version: "1.10.0" + + - name: Generate documentation + working-directory: docs + run: doxygen diff --git a/.github/workflows/iOS.yml b/.github/workflows/iOS.yml index 15b0693..0944805 100644 --- a/.github/workflows/iOS.yml +++ b/.github/workflows/iOS.yml @@ -10,6 +10,7 @@ on: paths-ignore: - ".gitignore" - "README.md" + - "docs/**" # ignore CI for other platforms - ".github/FUNDING.yml" - ".github/actions/**" @@ -24,6 +25,7 @@ on: paths-ignore: - ".gitignore" - "README.md" + - "docs/**" # ignore CI for other platforms - ".github/FUNDING.yml" - ".github/actions/**" diff --git a/.github/workflows/macOS.yml b/.github/workflows/macOS.yml index b4f6b84..4fa398d 100644 --- a/.github/workflows/macOS.yml +++ b/.github/workflows/macOS.yml @@ -10,6 +10,7 @@ on: paths-ignore: - ".gitignore" - "README.md" + - "docs/**" # ignore CI for other platforms - ".github/FUNDING.yml" - ".github/actions/**" @@ -24,6 +25,7 @@ on: paths-ignore: - ".gitignore" - "README.md" + - "docs/**" # ignore CI for other platforms - ".github/FUNDING.yml" - ".github/actions/**"