manually download latex every build
Some checks failed
Build LaTeX Document / build (push) Failing after 10m11s

This commit is contained in:
lukas-heiligenbrunner 2024-09-30 14:15:17 +02:00
parent 2721df4e1a
commit 4302c5021f

View File

@ -1,18 +1,37 @@
name: Build LaTeX document name: Build LaTeX Document
on: [push]
on:
push:
branches:
- master # This will run the action when you push to the main branch
pull_request:
jobs: jobs:
build_latex: build:
runs-on: dind runs-on: ubuntu-latest
steps: steps:
- name: Set up Git repository # Checkout the repository containing the LaTeX files
uses: actions/checkout@v4 - name: Checkout repository
- name: Build LaTeX Document uses: actions/checkout@v3
# Install LaTeX dependencies manually (TexLive and BibTeX)
- name: Install LaTeX
run: | run: |
workdirr=${{ github.workspace }} sudo apt-get update
echo $workdirr sudo apt-get install -y texlive-full biber
docker run --rm -v "$workdirr:/build" ghcr.io/xu-cheng/texlive-full:latest latexmk -pdf -xelatex -shell-escape /build/src/main.tex
- name: Upload PDF file # Compile the LaTeX document (first pass)
uses: actions/upload-artifact@v4 - name: Compile LaTeX (first pass)
run: |
pdflatex -interaction=nonstopmode -halt-on-error -file-line-error main.tex
bibtex main
pdflatex -interaction=nonstopmode -halt-on-error -file-line-error main.tex
pdflatex -interaction=nonstopmode -halt-on-error -file-line-error main.tex
# Upload the compiled PDF as an artifact
- name: Upload PDF
uses: actions/upload-artifact@v3
with: with:
name: PDF name: compiled-latex
path: src/main.pdf path: main.pdf