revert
Build LaTeX PDF / build (push) Failing after 19s

This commit is contained in:
Domipoke
2026-07-27 16:52:49 +02:00
parent c4ea0d00ff
commit 209337dd70
2 changed files with 45 additions and 45 deletions
+44 -44
View File
@@ -1,55 +1,55 @@
name: Build LaTeX PDF name: Build LaTeX PDF
on: on:
push: push:
paths: paths:
- '**/*.tex' - "**/*.tex"
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
GIT_SSL_NO_VERIFY: "true" GIT_SSL_NO_VERIFY: "true"
NODE_EXTRA_CA_CERTS: /usr/local/share/ca-certificates/Egregge.crt NODE_EXTRA_CA_CERTS: /usr/local/share/ca-certificates/Egregge.crt
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Find all root .tex files - name: Find all root .tex files
id: roots id: roots
run: | run: |
ROOTS=$(grep -rl '\\documentclass' --include='*.tex' . | sed 's|^\./||' | tr '\n' ' ') ROOTS=$(grep -rl '\\documentclass' --include='*.tex' . | sed 's|^\./||' | tr '\n' ' ')
echo "roots=$ROOTS" >> "$GITHUB_OUTPUT" echo "roots=$ROOTS" >> "$GITHUB_OUTPUT"
echo "Root files to build: $ROOTS" echo "Root files to build: $ROOTS"
- name: Compile all root files - name: Compile all root files
if: steps.roots.outputs.roots != '' if: steps.roots.outputs.roots != ''
uses: docker://texlive/texlive:latest-full uses: docker://texlive/texlive:latest-full
with: with:
entrypoint: sh entrypoint: sh
args: >- args: >-
-c "mkdir -p pdf aux && for f in ${{ steps.roots.outputs.roots }}; do -c "mkdir -p pdf aux && for f in ${{ steps.roots.outputs.roots }}; do
echo Building $f; echo Building $f;
latexmk -xelatex -interaction=nonstopmode -halt-on-error -outdir=pdf -auxdir=aux \"$f\" || exit 1; latexmk -pdf -interaction=nonstopmode -halt-on-error -outdir=pdf -auxdir=aux \"$f\" || exit 1;
done && find pdf -type f ! -name '*.pdf' -delete" done && find pdf -type f ! -name '*.pdf' -delete"
- name: Upload built PDFs - name: Upload built PDFs
if: steps.roots.outputs.roots != '' if: steps.roots.outputs.roots != ''
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: pdf-output name: pdf-output
path: pdf/*.pdf path: pdf/*.pdf
- name: Commit PDFs back to repo - name: Commit PDFs back to repo
if: steps.roots.outputs.roots != '' if: steps.roots.outputs.roots != ''
run: | run: |
git config user.name "gitea-actions" git config user.name "gitea-actions"
git config user.email "actions@gitea.local" git config user.email "actions@gitea.local"
git remote set-url origin "https://Domipoke:${{ secrets.GITEA_PUSH_TOKEN }}@gitea.egregge.eg/Domipoke/SharedLaTeX.git" git remote set-url origin "https://Domipoke:${{ secrets.GITEA_PUSH_TOKEN }}@gitea.egregge.eg/Domipoke/SharedLaTeX.git"
BRANCH="${GITHUB_REF#refs/heads/}" BRANCH="${GITHUB_REF#refs/heads/}"
echo "Pushing to branch: $BRANCH" echo "Pushing to branch: $BRANCH"
git add pdf/*.pdf git add pdf/*.pdf
git diff --cached --quiet || git commit -m "CI: rebuild all PDFs [skip ci]" git diff --cached --quiet || git commit -m "CI: rebuild all PDFs [skip ci]"
git push origin HEAD:refs/heads/"$BRANCH" git push origin HEAD:refs/heads/"$BRANCH"
+1 -1
View File
@@ -24,7 +24,7 @@
\renewcommand{\underline}[1]{\uline{#1}} \renewcommand{\underline}[1]{\uline{#1}}
\usepackage{tabularx} \usepackage{tabularx}
\tcbuselibrary{skins,breakable} \tcbuselibrary{skins,breakable}
% 5 % 6
\sffamily \sffamily
\linespread{1.25} \linespread{1.25}
\setfootnoterule{0.8\textwidth} \setfootnoterule{0.8\textwidth}