Skip to content

Commit

Permalink
Build latex definition in CI
Browse files Browse the repository at this point in the history
To insure that the latex file are not corrupted, let's build them in the CI

Closes: #1111
  • Loading branch information
greenscientist committed Nov 27, 2024
1 parent 9fc6205 commit 81a40d0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/latex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Workflow that validate latex files
name: latex definition files

on:
push:
branches: [ main ]
# Runs on all push to main, to make sure there's no other side effet
pull_request:
branches: [ main ]
# But only runs on PR that touches tex files
paths:
- '**/*.tex'

jobs:
latex-compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install latex packages
run: sudo apt install texlive-latex-base texlive-latex-extra
- name: Builds latex files
working-directory: packages/transition-backend/file/definitions
run: |
pdflatex definitions-en.tex
pdflatex definitions-fr.tex

0 comments on commit 81a40d0

Please sign in to comment.