From 6b2ed081760fd7a24389a94537ef84da9f985e5e Mon Sep 17 00:00:00 2001 From: Anthony Romaniello Date: Tue, 9 Jul 2024 16:18:52 -0400 Subject: [PATCH] Build docs when running tests This ensures docs can be built before actions attempt to build and deploy them --- .github/workflows/ctest.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ctest.yml b/.github/workflows/ctest.yml index ea6592a..dfa96ca 100644 --- a/.github/workflows/ctest.yml +++ b/.github/workflows/ctest.yml @@ -1,4 +1,5 @@ # This action compiles the library and runs all unit tests using an OS and CMake matrix +# Doxygen documentation is also built. Build fails on missing documentation. name: Unit Tests on: @@ -27,19 +28,24 @@ jobs: - name: Clone required submodules run: | git submodule init extern/googletest + git submodule init extern/doxygen-awesome-css git submodule update - name: Install CMake uses: lukka/get-cmake@latest with: cmakeVersion: ${{ matrix.cmakeVersion }} + + - name: Install Doxygen + uses: ssciwr/doxygen-install@v1 + with: + version: "1.11.0" - name: "CMake: Build and Test (32-bit)" if: matrix.os == 'windows-2019' uses: lukka/run-cmake@v10 with: configurePreset: release32 - configurePresetAdditionalArgs: "['-DBUILD_DOCS=OFF']" buildPreset: release32 testPreset: release32 @@ -48,6 +54,5 @@ jobs: uses: lukka/run-cmake@v10 with: configurePreset: release64 - configurePresetAdditionalArgs: "['-DBUILD_DOCS=OFF']" buildPreset: release64 testPreset: release64