BUG: Make book DVI depend on Art EPS figures (fix parallel-build race) #316
This file contains hidden or 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
| name: Build | |
| on: [push, pull_request] | |
| env: | |
| # C.UTF-8 is always available without locale-gen and keeps LaTeX byte-clean. | |
| LC_ALL: C.UTF-8 | |
| LANG: C.UTF-8 | |
| jobs: | |
| build-publish-pdf: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # System TeX: conda-forge texlive-core is engine-only, so a real LaTeX | |
| # distribution comes from apt. ghostscript, ImageMagick 7, Pygments, cmake | |
| # and ninja are provided by the pixi 'build' environment. | |
| - name: Install system TeX | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| texlive-latex-base \ | |
| texlive-latex-extra \ | |
| texlive-latex-recommended \ | |
| texlive-fonts-recommended \ | |
| dvipng \ | |
| tex4ht | |
| sudo apt-get clean | |
| - name: Set up pixi | |
| uses: prefix-dev/setup-pixi@v0.9.6 | |
| with: | |
| environments: build | |
| cache: true | |
| - name: Build the Software Guide | |
| run: pixi run build | |
| - name: Collect PDFs | |
| run: | | |
| cp build/ITKSoftwareGuide-build/SoftwareGuide/Latex/ITKSoftwareGuide-Book1.pdf InsightSoftwareGuide-Book1.pdf | |
| cp build/ITKSoftwareGuide-build/SoftwareGuide/Latex/ITKSoftwareGuide-Book2.pdf InsightSoftwareGuide-Book2.pdf | |
| - name: Publish ITK Software Guide Book 1 artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: InsightSoftwareGuide-Book1.pdf | |
| name: InsightSoftwareGuide-Book1.pdf | |
| - name: Publish ITK Software Guide Book 2 artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: InsightSoftwareGuide-Book2.pdf | |
| name: InsightSoftwareGuide-Book2.pdf |