From de6ebc29fc68bc8ed85cf2a999727c520949b5e6 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 16 Feb 2026 13:48:54 +0100 Subject: [PATCH] LaTeX: Using alternative for addnab/docker-run-action. --- .github/workflows/LaTeXDocumentation.yml | 29 +++++++++++++----------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/LaTeXDocumentation.yml b/.github/workflows/LaTeXDocumentation.yml index c8cd3ff..aa01cb6 100644 --- a/.github/workflows/LaTeXDocumentation.yml +++ b/.github/workflows/LaTeXDocumentation.yml @@ -42,6 +42,11 @@ on: required: false default: 'xelatex' type: string + halt-on-error: + description: 'Halt on first error, otherwise continue as long as possible.' + required: false + default: 'true' + type: string pdf_artifact: description: 'Name of the PDF documentation artifact.' required: false @@ -58,29 +63,27 @@ jobs: name: 📓 Converting LaTeX Documentation to PDF runs-on: "ubuntu-${{ inputs.ubuntu_image_version }}" continue-on-error: ${{ inputs.can-fail == 'true' }} + container: + image: pytooling/miktex:sphinx + volumes: + - ${{ github.workspace }}/latex:/latex steps: - name: 📥 Download artifacts '${{ inputs.latex_artifact }}' from 'SphinxDocumentation' job uses: pyTooling/download-artifact@v7 with: name: ${{ inputs.latex_artifact }} path: latex - -# - name: Debug -# run: | -# tree -pash . + investigate: 'true' - name: Build LaTeX document using 'pytooling/miktex:sphinx' - uses: addnab/docker-run-action@v3 if: inputs.pdf_artifact != '' - with: - image: pytooling/miktex:sphinx - options: -v ${{ github.workspace }}/latex:/latex --workdir /latex - run: | - # which ${{ inputs.processor }} - # pwd - # ls -lAh + run: | + if [[ "${{ inputs.halt-on-error }}" == "true" ]]; then + HALT_ON_ERROR="--halt-on-error" + fi - latexmk -${{ inputs.processor }} "${{ inputs.document }}.tex" + cd latex + latexmk --${{ inputs.processor }} --interaction=nonstopmode -file-line-error -max-print-line=250 ${HALT_ON_ERROR} "${{ inputs.document }}.tex" - name: 📤 Upload 'PDF Documentation' artifact uses: pyTooling/upload-artifact@v6