Skip to content

Commit a9b521e

Browse files
feat: now pdf is compiling in actions (#13)
* feat: now pdf is compiling in actions * chore: minor chaange to test pdf build * chore: update generated PDF from CI --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 41df006 commit a9b521e

File tree

5 files changed

+53
-3
lines changed

5 files changed

+53
-3
lines changed

.github/workflows/latex.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build LaTeX PDF
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build-pdf:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
16+
steps:
17+
- name: Checkout PR branch
18+
uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.head_ref }}
21+
persist-credentials: true
22+
23+
- name: Compile LaTeX
24+
uses: xu-cheng/latex-action@v4
25+
with:
26+
root_file: core-design-document.tex
27+
texlive_version: 2025
28+
os: debian
29+
latexmk_use_lualatex: true
30+
31+
- name: Upload PDF artifact
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: core-design-document-pdf
35+
path: core-design-document.pdf
36+
37+
38+
- name: Commit updated PDF back to PR branch
39+
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
40+
run: |
41+
if git diff --quiet -- core-design-document.pdf; then
42+
echo "PDF not changed, nothing to commit."
43+
exit 0
44+
fi
45+
46+
git config user.name "github-actions[bot]"
47+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
48+
git add core-design-document.pdf
49+
git commit -m "chore: update generated PDF from CI"
50+
git push origin "HEAD:${GITHUB_HEAD_REF}"

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
build/*
22
*.synctex.gz
3-
.vscode/*
3+
.vscode/*
4+
*.pdf

configuration/macroses/floats.sty

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
% Стандаратная библиотека externalize больше не поддерживается и там нет нужных
1111
% вещей, например поддержки относительных путей
1212
\RequirePackage{memoize}
13-
\mmzset{memo dir=build/}
1413

1514

1615
\input{macroses/utils/floats/images}

core-design-document.pdf

36.9 KB
Binary file not shown.

src/architectural-views/logical-structure/02-distributions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ \subsubsection{Реестр преобразований характерист
9595

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

0 commit comments

Comments
 (0)