Skip to content

Commit 88a75ab

Browse files
committed
try enabling windows documentation workflow
1 parent 11240ae commit 88a75ab

File tree

1 file changed

+37
-24
lines changed

1 file changed

+37
-24
lines changed

.github/workflows/build_cmake.yml

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,21 @@ jobs:
172172
# bibtex
173173
# if: matrix.config.os == 'windows-latest'
174174

175+
- name: Install MikTeX (Windows)
176+
run: |
177+
choco install miktex --no-progress
178+
echo "%ProgramFiles%\MiKTeX\miktex\bin\x64" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
179+
initexmf --admin --verbose --set-config-value=[MPM]AutoInstall=1
180+
miktex --admin --verbose packages update-package-database
181+
miktex --admin --verbose packages update
182+
miktex --verbose packages update
183+
miktex --admin --verbose packages install scheme-medium collection-latexextra babel-dutch cjk bibtex
184+
miktex --admin --verbose fndb refresh
185+
initexmf --admin --verbose --update-fndb
186+
initexmf --admin --verbose --mklinks --force
187+
updmap --admin
188+
if: matrix.config.os == 'windows-latest'
189+
175190
- name: Install Ghostscript (Linux)
176191
run: |
177192
sudo apt update
@@ -201,7 +216,7 @@ jobs:
201216
- name: Install xmllint (MacOS)
202217
run: |
203218
brew update || true
204-
brew upgrade || true
219+
brew upgrade || true
205220
brew install libxml2
206221
if: startsWith(matrix.config.os,'macos-')
207222

@@ -304,12 +319,12 @@ jobs:
304319
python --version;
305320
echo "=== cmake ===";
306321
cmake --version;
307-
# echo "=== latex ===";
308-
# latex --version;
309-
# echo "=== bibtex ===";
310-
# bibtex --version
311-
# echo "=== dvips ===";
312-
# dvips --version
322+
echo "=== latex ===";
323+
latex --version;
324+
echo "=== bibtex ===";
325+
bibtex --version
326+
echo "=== dvips ===";
327+
dvips --version
313328
echo "=== bison ===";
314329
win_bison --version;
315330
echo "=== flex ===";
@@ -382,21 +397,21 @@ jobs:
382397
endif()
383398
if: matrix.config.os != 'windows-latest'
384399

385-
# - name: Run tests (Windows)
386-
# shell: cmake -P {0}
387-
# run: |
388-
# set(ENV{CTEST_OUTPUT_ON_FAILURE} "ON")
389-
#
390-
# execute_process(
391-
# COMMAND
392-
# cmake -E env TEST_FLAGS="--xml --xmlxsd --xhtml --qhp --docbook --rtf --man --pdf"
393-
# cmake --build build --target tests
394-
# RESULT_VARIABLE result
395-
# )
396-
# if (NOT result EQUAL 0)
397-
# message(FATAL_ERROR "Running tests failed!")
398-
# endif()
399-
# if: matrix.config.os == 'windows-latest'
400+
- name: Run tests (Windows)
401+
shell: cmake -P {0}
402+
run: |
403+
set(ENV{CTEST_OUTPUT_ON_FAILURE} "ON")
404+
405+
execute_process(
406+
COMMAND
407+
cmake -E env TEST_FLAGS="--xml --xmlxsd --xhtml --qhp --docbook --rtf --man --pdf"
408+
cmake --build build --target tests
409+
RESULT_VARIABLE result
410+
)
411+
if (NOT result EQUAL 0)
412+
message(FATAL_ERROR "Running tests failed!")
413+
endif()
414+
if: matrix.config.os == 'windows-latest'
400415

401416
- name: Generate documentation
402417
shell: cmake -P {0}
@@ -408,8 +423,6 @@ jobs:
408423
if (NOT result EQUAL 0)
409424
message(FATAL_ERROR "Building documentation failed")
410425
endif()
411-
# TODO: remove me when texlive installation is fixed
412-
if: matrix.config.os != 'windows-latest'
413426
414427
- name: Archive html documentation artifacts
415428
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)