build: mark doc target as ALL_BUILD

Windows does not support the doc target, which causes the CI to fail.
Marking the doc target as ALL should fix this.

Signed-off-by: Ronald Caesar <github43132@proton.me>
This commit is contained in:
Ronald Caesar
2026-01-16 23:23:22 -04:00
parent f4fbdc43e4
commit 6006b5e9e9
2 changed files with 3 additions and 5 deletions

View File

@@ -132,9 +132,8 @@ jobs:
-DBALLISTIC_ENABLE_BUILD_TESTS=ON \
-DBALLISTIC_ENABLE_LINK_TIME_OPTIMIZATION=${{ matrix.type == 'Release' && 'ON' || 'OFF' }}
- name: Build Project & Docs
# FIX: Replaced env var with relative path
run: cmake --build build --config ${{ matrix.type }} --target all doc --parallel 4
- name: Build Project
run: cmake --build build --config ${{ matrix.type }} --target all --parallel 4
- name: Run Test Suite
working-directory: build
@@ -145,7 +144,6 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ballistic-tools-${{ matrix.os }}
# Relative paths are safe in action inputs
path: |
build/ballistic_cli*
build/decoder_cli*

View File

@@ -106,7 +106,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set (PROJECT_HEADERS include/bal_engine.h include/bal_decoder.h
include/bal_memory.h include/bal_types.h include/bal_errors.h)
add_custom_target(doc
add_custom_target(doc ALL
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/cdoc docs/cdoc ${PROJECT_HEADERS}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMENT "Generating Documentation..."