Skip to content

Commit

Permalink
Automated LaTeX build testing (#43)
Browse files Browse the repository at this point in the history
* added automated LaTeX build testing
* update README.md
  • Loading branch information
Ahanio authored Sep 11, 2024
1 parent bdf1955 commit 40a1288
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/latex-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: LaTeX Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex

- name: Check for LaTeX errors and warnings
run: |
if grep -q "^!" main.log; then
echo "LaTeX errors found:"
grep "^!" main.log
exit 1
elif grep -q "Warning:" main.log; then
echo "LaTeX warnings found:"
grep "Warning:" main.log
echo "Build completed with warnings."
else
echo "LaTeX build completed successfully without errors or warnings."
fi
- name: Upload PDF
uses: actions/upload-artifact@v4
with:
name: main.pdf
path: main.pdf
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

History (in reverse chronological order)

- added automated LaTeX build testing for CVPR 2025 by [Ahan Shabanov](https://ahanio.github.io)
- References in `cvprblue` for CVPR 2024 by [Klaus Greff](https://github.com/Qwlouse)
- added natbib for CVPR 2024 by [Christian Richardt](https://richardt.name/)
- replaced buggy (review-mode) line numbering for 3DV 2024 by [Adin Ramirez Rivera](https://openreview.net/profile?id=~Ad%C3%ADn_Ram%C3%ADrez_Rivera1)
Expand Down

0 comments on commit 40a1288

Please sign in to comment.