diff --git a/.github/workflows/ctest.yml b/.github/workflows/ctest.yml index 31f47b2..a5ef316 100644 --- a/.github/workflows/ctest.yml +++ b/.github/workflows/ctest.yml @@ -53,7 +53,7 @@ jobs: -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} - -DDEADDEV_BITMASK_GENERATE_DOCS=ON + -DDEADDEV_BITMASK_GENERATE_DOCS=OFF -DDEADDEV_BITMASK_BUILD_EXAMPLES=OFF -DDEADDEV_BITMASK_BUILD_TESTS=ON -S ${{ github.workspace }} @@ -65,6 +65,32 @@ jobs: working-directory: ${{ steps.strings.outputs.build-output-dir }} run: ctest --build-config ${{ matrix.build_type }} + generate-docs: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set reusable strings + id: strings + shell: bash + run: | + echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" + + - name: Configure CMake + run: > + cmake -B ${{ steps.strings.outputs.build-output-dir }} + -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} + -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + -DDEADDEV_BITMASK_GENERATE_DOCS=ON + -DDEADDEV_BITMASK_BUILD_EXAMPLES=OFF + -DDEADDEV_BITMASK_BUILD_TESTS=OFF + -S ${{ github.workspace }} + + - name: Build + run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --target deaddev_doc_doxygen --config ${{ matrix.build_type }} + - name: Doxygenize uses: langroodi/doxygenize@v1.7.1 with: diff --git a/.gitignore b/.gitignore index 03fecc0..e17c872 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ * +!.github/ +!.github/** !example/ !example/** !include/ diff --git a/CMakeLists.txt b/CMakeLists.txt index d58a0cf..7c1d0d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,10 +31,10 @@ endif(DEADDEV_BITMASK_INSTALL) if(DEADDEV_BITMASK_GENERATE_DOCS) find_package(Doxygen) + set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/docs/Doxyfile.in) + set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) + configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY) if(Doxygen_FOUND) - set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/docs/Doxyfile.in) - set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) - configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY) add_custom_target(deaddev_doc_doxygen ALL COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} diff --git a/include/deaddev/bitmask.hpp b/include/deaddev/bitmask.hpp index abce9e2..9862479 100644 --- a/include/deaddev/bitmask.hpp +++ b/include/deaddev/bitmask.hpp @@ -91,7 +91,7 @@ template constexpr bool is_scoped_enum_v = __is_scoped_enum(T); template constexpr bool is_scoped_enum_v = ::std::is_enum::value && - !::std::is_convertible::type>::value; + !::std::is_convertible::type>::value; #endif /**