Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/latex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build LaTeX PDF

on:
pull_request:
branches:
- master

jobs:
build-pdf:
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write

steps:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
persist-credentials: true

- name: Compile LaTeX
uses: xu-cheng/latex-action@v4
with:
root_file: core-design-document.tex
texlive_version: 2025
os: debian
latexmk_use_lualatex: true

- name: Upload PDF artifact
uses: actions/upload-artifact@v4
with:
name: core-design-document-pdf
path: core-design-document.pdf


- name: Commit updated PDF back to PR branch
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
run: |
if git diff --quiet -- core-design-document.pdf; then
echo "PDF not changed, nothing to commit."
exit 0
fi

git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add core-design-document.pdf
git commit -m "chore: update generated PDF from CI"
git push origin "HEAD:${GITHUB_HEAD_REF}"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build/*
*.synctex.gz
.vscode/*
.vscode/*
*.pdf
1 change: 0 additions & 1 deletion configuration/macroses/floats.sty
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
% Стандаратная библиотека externalize больше не поддерживается и там нет нужных
% вещей, например поддержки относительных путей
\RequirePackage{memoize}
\mmzset{memo dir=build/}


\input{macroses/utils/floats/images}
Expand Down
Binary file modified core-design-document.pdf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ \subsubsection{Реестр преобразований характерист

\textbf{Инварианты.}
\begin{enumerate}
\item Подграф \emph{definitive}-узлов всегда связен: из любой definitive-характеристики существует путь в любую другую.
\item Подграф \emph{definitive}-узлов всегда сильно связен: из любой definitive-характеристики существует путь в любую другую.
\item \emph{Indefinitive}-узлы являются стоками: обратных рёбер из них в множество definitive нет.
\end{enumerate}

Expand Down