ci: setup document build #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build LaTeX document | ||
| on: [push, pull_request] | ||
| 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-lang-cyrillicsu texlive-bibtex-extra texlive-science texlive-plain-generic latexmk --yes | ||
| - run: sudo apt install libpdf-api2-perl python3-pygments --yes | ||
| - run: sudo apt install texlive-fonts-recommended --yes | ||
| - name: build document | ||
| run: latexmk core-design-document.tex | ||
| - name: Upload compiled document | ||
| uses: actions/upload-artifact@v3 | ||
| with:a | ||
| name: core-design-document | ||
| path: core-design-document.pdf | ||