Skip to content

Commit 04de5d5

Browse files
committed
ci: setup document build
1 parent face05c commit 04de5d5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build LaTeX document
2+
3+
on:
4+
5+
pull_request:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build_latex:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Cancel Previous Runs
14+
uses: styfle/cancel-workflow-action@0.7.0
15+
16+
- name: Set up Git repository
17+
uses: actions/checkout@v5
18+
- run: sudo apt-get update
19+
- run: sudo apt install fonts-cmu texlive-lang-cyrillic texlive-luatex texlive-latex-extra texlive-bibtex-extra texlive-science texlive-plain-generic latexmk --yes
20+
- run: sudo apt install libpdf-api2-perl python3-pygments --yes
21+
- run: sudo apt install texlive-fonts-recommended --yes
22+
23+
- name: build document
24+
run: latexmk core-design-document.tex
25+
26+
- name: Upload compiled document
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: core-design-document
30+
path: core-design-document.pdf

0 commit comments

Comments
 (0)