-
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
1a76141
commit e2ee19e
Showing
1 changed file
with
14 additions
and
31 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,35 +1,18 @@ | ||
name: LaTeX Build and Test | ||
|
||
on: push | ||
name: LaTeX and pray | ||
|
||
on: [push] | ||
jobs: | ||
build: | ||
build_latex: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up TeX environment | ||
uses: xu-cheng/texlive-action@v2 | ||
with: | ||
directory: . | ||
tex-packages: "pdflatex" | ||
|
||
- name: Please just use pdflatex for gods sake | ||
run: | | ||
tlmgr install pdflatex | ||
- name: Compile LaTeX document | ||
run: | | ||
pdflatex -interaction=nonstopmode -halt-on-error docs/stitch-documentation.tex | ||
pdflatex -interaction=nonstopmode -halt-on-error docs/stitch-documentation.tex | ||
- name: Check if PDF is generated | ||
run: | | ||
if [ ! -f "your-document.pdf" ]; then | ||
echo "Error: PDF not generated" | ||
exit 1 | ||
fi | ||
# hope and pray this works, I couldn't figure it out myself so I just used chatgpt to generate this (probably) garbage chute | ||
- uses: actions/checkout@v4 | ||
- uses: xu-cheng/texlive-action@v2 | ||
with: | ||
docker_image: ghcr.io/xu-cheng/texlive-full:20230801 | ||
run: | | ||
apk add make | ||
cd docs | ||
make | ||
# praying |