1

Update latex workflow to use my own texlive image

This commit is contained in:
2023-11-22 11:29:54 +01:00
parent 66ad46ec3d
commit 7fdf7c6da2

View File

@ -4,24 +4,16 @@ on:
push:
branches: [master, main]
# TODO: Don't install texlive-full etc. every time, but use gitea.vps.chriphost.de/christoph/docker-texlive
jobs:
build-latex:
runs-on: ubuntu-22.04
steps:
- name: Setup TexLive
run: |
apt-get update
apt-get install -y texlive-full
apt-get install -y inkscape
apt-get install -y python3-pygments
- name: Checkout repository
uses: actions/checkout@v4
- name: Build LaTeX document
# run: docker run --rm --volumes-from ${{ env.JOB_CONTAINER_NAME }} --workdir ${{ github.workspace }} ghcr.io/xu-cheng/texlive-full:latest latexmk -shell-escape -pdf thesis.tex
run: latexmk -shell-escape -pdf thesis.tex
run: docker run --rm --volumes-from ${{ env.JOB_CONTAINER_NAME }} --workdir ${{ github.workspace }} gitea.vps.chriphost.de/christoph/docker-texlive:latest latexmk -shell-escape -pdf <MAIN-FILE>.tex
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: interrupt-handling-using-the-x86-apic.pdf
path: thesis.pdf
name: <ARTIFACT-NAME>.pdf
path: <FILE-NAME>.pdf