Skip to content

Commit

Permalink
PDFs in separate CIs + use latex image
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanBlanchard committed Nov 1, 2024
1 parent 5fd3cee commit 076d133
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/pdfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,32 @@ name: PDFs
on: [push]

jobs:
compile:
name: Compile the tutorial
compile-en:
name: EN version
runs-on: ubuntu-latest
container: allanblanchardgh/tutoriel_wp:latex
steps:
- name: install needed packages
run: sudo apt update && DEBIAN_FRONTEND=noninteractive sudo --preserve-env=DEBIAN_FRONTEND apt install -y make texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-plain-generic texlive-fonts-extra texlive-lang-french texlive-luatex python3-pygments librsvg2-bin
- name: retrieve sources
uses: actions/checkout@v4
- name: compile
run: make
run: make -C english
- name: archive PDFs
uses: actions/upload-artifact@v4
with:
path: |
english/main.pdf
french/main.pdf
name: frama-c-wp-tutorial-en.pdf
path: english/main.pdf

compile-fr:
name: FR version
runs-on: ubuntu-latest
container: allanblanchardgh/tutoriel_wp:latex
steps:
- name: retrieve sources
uses: actions/checkout@v4
- name: compile
run: make -C french
- name: archive PDFs
uses: actions/upload-artifact@v4
with:
name: frama-c-wp-tutoriel-fr.pdf
path: french/main.pdf

0 comments on commit 076d133

Please sign in to comment.