feat: replace pdflatex build steps with latexmk for improved document compilation
All checks were successful
Build LaTeX Document / build_latex (push) Successful in 3m27s
All checks were successful
Build LaTeX Document / build_latex (push) Successful in 3m27s
This commit is contained in:
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
@@ -32,20 +32,8 @@ jobs:
|
|||||||
- name: Enable automatic package installation
|
- name: Enable automatic package installation
|
||||||
run: initexmf --set-config-value=[MPM]AutoInstall=yes
|
run: initexmf --set-config-value=[MPM]AutoInstall=yes
|
||||||
|
|
||||||
- name: Build LaTeX document (first run)
|
- name: Build LaTeX document using latexmk
|
||||||
run: |
|
run: latexmk -pdf -interaction=nonstopmode -halt-on-error ${{ env.TEX_NAME }}.tex
|
||||||
pdflatex -interaction=nonstopmode -halt-on-error ${{ env.TEX_NAME }} || (cat /root/.miktex/texmfs/data/miktex/log/pdflatex.log && exit 1)
|
|
||||||
|
|
||||||
- name: Run Biber to process bibliography
|
|
||||||
run: biber ${{ env.TEX_NAME }}
|
|
||||||
|
|
||||||
- name: Build LaTeX document (second run)
|
|
||||||
run: |
|
|
||||||
pdflatex -interaction=nonstopmode -halt-on-error ${{ env.TEX_NAME }} || (cat /root/.miktex/texmfs/data/miktex/log/pdflatex.log && exit 1)
|
|
||||||
|
|
||||||
- name: Build LaTeX document (third run)
|
|
||||||
run: |
|
|
||||||
pdflatex -interaction=nonstopmode -halt-on-error ${{ env.TEX_NAME }} || (cat /root/.miktex/texmfs/data/miktex/log/pdflatex.log && exit 1)
|
|
||||||
|
|
||||||
- name: Check for PDF artifact
|
- name: Check for PDF artifact
|
||||||
run: file ${{ env.PDF_NAME }} || grep -q ' PDF '
|
run: file ${{ env.PDF_NAME }} || grep -q ' PDF '
|
||||||
|
Reference in New Issue
Block a user