diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..471ecae --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Build LaTeX document + +on: + + pull_request: + branches: + - master + +jobs: + build_latex: + runs-on: ubuntu-latest + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.7.0 + + - name: Set up Git repository + uses: actions/checkout@v5 + - run: sudo apt-get update + - run: sudo apt install fonts-cmu texlive-full python3-pygments --yes + - run: cpan PDF::API2 + - name: build document + run: latexmk core-design-document.tex + + - name: Upload compiled document + uses: actions/upload-artifact@v4 + with: + name: core-design-document + path: core-design-document.pdf \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3924fc1..d4edba3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ build/* *.synctex.gz -.vscode/* \ No newline at end of file +.vscode/* +*.pdf \ No newline at end of file diff --git a/core-design-document.pdf b/core-design-document.pdf deleted file mode 100644 index ce9d2c0..0000000 Binary files a/core-design-document.pdf and /dev/null differ diff --git a/core-design-document.tex b/core-design-document.tex index 3260350..1f3f3ef 100644 --- a/core-design-document.tex +++ b/core-design-document.tex @@ -14,7 +14,7 @@ \newmathcommand{\MGF}{M} -\title{Архитектурный документ. Ядро PySATL} +\title{Дизайн документ. Ядро PySATL} \author{Михаил Михайлов, Леонид Елкин} \date{\today}