Skip to content

Commit de6ebc2

Browse files
committed
LaTeX: Using alternative for addnab/docker-run-action.
1 parent 1eed538 commit de6ebc2

1 file changed

Lines changed: 16 additions & 13 deletions

File tree

.github/workflows/LaTeXDocumentation.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ on:
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

0 commit comments

Comments
 (0)