ci: update latex pipeline #6
This file contains 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: LaTeX to PDF | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install unzip | |
run: sudo apt-get install -y unzip | |
- name: Install Inter font | |
run: | | |
mkdir -p ~/.local/share/fonts | |
wget -qO Inter.zip https://github.com/rsms/inter/releases/download/v3.19/Inter-3.19.zip | |
unzip -o Inter.zip -d ~/.local/share/fonts | |
fc-cache -f -v | |
- name: Install TeX Live and latexmk | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y texlive-full latexmk | |
- name: Compile LaTeX documents | |
run: | | |
mkdir -p output | |
for file in *.tex; do | |
latexmk -pdf -shell-escape -interaction=nonstopmode -output-directory=output "$file" | |
done | |
- name: Upload PDFs | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pdfs | |
path: output/*.pdf | |