Skip to content

Commit

Permalink
Build docs when running tests
Browse files Browse the repository at this point in the history
This ensures docs can be built before actions attempt to build and deploy them
  • Loading branch information
aromanielloNTIA committed Jul 9, 2024
1 parent b25108b commit 6b2ed08
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ctest.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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

Expand All @@ -48,6 +54,5 @@ jobs:
uses: lukka/run-cmake@v10
with:
configurePreset: release64
configurePresetAdditionalArgs: "['-DBUILD_DOCS=OFF']"
buildPreset: release64
testPreset: release64

0 comments on commit 6b2ed08

Please sign in to comment.