File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 required : false
4343 default : ' xelatex'
4444 type : string
45+ halt-on-error :
46+ description : ' Halt on first error, otherwise continue as long as possible.'
47+ required : false
48+ default : ' true'
49+ type : string
4550 pdf_artifact :
4651 description : ' Name of the PDF documentation artifact.'
4752 required : false
@@ -58,29 +63,27 @@ jobs:
5863 name : 📓 Converting LaTeX Documentation to PDF
5964 runs-on : " ubuntu-${{ inputs.ubuntu_image_version }}"
6065 continue-on-error : ${{ inputs.can-fail == 'true' }}
66+ container :
67+ image : pytooling/miktex:sphinx
68+ volumes :
69+ - ${{ github.workspace }}/latex:/latex
6170 steps :
6271 - name : 📥 Download artifacts '${{ inputs.latex_artifact }}' from 'SphinxDocumentation' job
6372 uses : pyTooling/download-artifact@v7
6473 with :
6574 name : ${{ inputs.latex_artifact }}
6675 path : latex
67-
68- # - name: Debug
69- # run: |
70- # tree -pash .
76+ investigate : ' true'
7177
7278 - name : Build LaTeX document using 'pytooling/miktex:sphinx'
73- uses : addnab/docker-run-action@v3
7479 if : inputs.pdf_artifact != ''
75- with :
76- image : pytooling/miktex:sphinx
77- options : -v ${{ github.workspace }}/latex:/latex --workdir /latex
78- run : |
79- # which ${{ inputs.processor }}
80- # pwd
81- # ls -lAh
80+ run : |
81+ if [[ "${{ inputs.halt-on-error }}" == "true" ]]; then
82+ HALT_ON_ERROR="--halt-on-error"
83+ fi
8284
83- latexmk -${{ inputs.processor }} "${{ inputs.document }}.tex"
85+ cd latex
86+ latexmk --${{ inputs.processor }} --interaction=nonstopmode -file-line-error -max-print-line=250 ${HALT_ON_ERROR} "${{ inputs.document }}.tex"
8487
8588 - name : 📤 Upload 'PDF Documentation' artifact
8689 uses : pyTooling/upload-artifact@v6
You can’t perform that action at this time.
0 commit comments