Skip to content

Commit bb38124

Browse files
authored
Separate spellcheck failure from docs build in CI (#144)
1 parent b481035 commit bb38124

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/docs.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ jobs:
5858
-DBUILD_DOCS_API=ON
5959
- name: Build
6060
run: ./build.sh --target docs-api-html docs-api-pdf docs-api-misspelling
61+
- name: Misspelling
62+
env:
63+
MISSPELLING_TXT: 'build/default/docs/api/misspelling.txt'
64+
# success means file is present and empty
65+
run: test -f "${MISSPELLING_TXT}" -a ! -s "${MISSPELLING_TXT}" || (cat "${MISSPELLING_TXT}"; exit 1)
6166
- name: Install
6267
run: ./build.sh install --component docs-api
6368
- name: Compress

docs/api/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ the prime contract 80NM0018D0004 between the Caltech and NASA under
2020
subcontract 1700763.
2121
]]
2222

23-
include(GNUInstallDirs)
24-
2523
find_package(Doxygen REQUIRED)
2624

2725
find_program(XMLSTARLET_EXECUTABLE xmlstarlet)
@@ -97,10 +95,6 @@ if(XMLSTARLET_EXECUTABLE AND ASPELL_EXECUTABLE)
9795
add_custom_target(
9896
docs-api-misspelling
9997
DEPENDS "${MISSPELLING_TXT}"
100-
COMMAND cat "${MISSPELLING_TXT}"
101-
# success means file is present and empty
102-
COMMAND test -f "${MISSPELLING_TXT}" -a ! -s "${MISSPELLING_TXT}"
103-
COMMENT "Checking ${MISSPELLING_TXT}"
10498
)
10599
endif(XMLSTARLET_EXECUTABLE AND ASPELL_EXECUTABLE)
106100

0 commit comments

Comments
 (0)