-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8032e3d
commit 4b133f2
Showing
1 changed file
with
46 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,49 @@ | ||
name: Build AVV LaTeX document | ||
on: [push] | ||
name: LaTeX to PDF | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_latex: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v1 | ||
- name: Compile LaTeX document | ||
uses: xu-cheng/latex-action@master | ||
with: | ||
root_file: avv.tex | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: avv.pdf | ||
path: document.pdf | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y wget tar xz-utils unzip | ||
- name: Install TeX Live | ||
run: | | ||
wget -qO install-tl-unx.tar.gz http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz | ||
tar -xzf install-tl-unx.tar.gz | ||
sudo ./install-tl-*/install-tl --no-admin --profile=profile.txt | ||
- name: Install LaTeX packages | ||
run: | | ||
sudo tlmgr update --self | ||
sudo tlmgr install latexmk | ||
- name: Install Inter font | ||
run: | | ||
sudo apt-get install -y fontconfig | ||
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: Compile all 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 | ||
|