Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion .github/workflows/ctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
*
!.github/
!.github/**
!example/
!example/**
!include/
Expand Down
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion include/deaddev/bitmask.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ template <typename T> constexpr bool is_scoped_enum_v = __is_scoped_enum(T);
template <typename T>
constexpr bool is_scoped_enum_v =
::std::is_enum<T>::value &&
!::std::is_convertible<T, ::std::underlying_type<T>::type>::value;
!::std::is_convertible<T, typename ::std::underlying_type<T>::type>::value;
#endif

/**
Expand Down
Loading