aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-10-16 22:33:56 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-10-16 22:33:56 -0700
commitfb804a375d6716f00d1987a2da2b0e4361fd7223 (patch)
tree5b39d4681324712d66ca3bd4da4a33fd4eb43cc9 /.github
parenta41c1fe0bbdf912f3585c7eb91b59340c35b9b77 (diff)
downloadpandoc-fb804a375d6716f00d1987a2da2b0e4361fd7223.tar.gz
CI: add workflow to test pdf production...
with xelatex, pdflatex, lualatex.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c75fcd213..17b77834e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -125,6 +125,62 @@ jobs:
! grep -q ": *[Ww]arning:" build.log || exit 1
cabal ${{ matrix.versions.prefix }}test ${{ matrix.versions.cabalopts }} --disable-optimization ${{ matrix.versions.testopts }}
+ linux-pdf:
+
+ runs-on: ubuntu-18.04
+ strategy:
+ fail-fast: true
+ matrix:
+ - pdfengine: xelatex
+ - pdfengine: lualatex
+ - pdfengine: pdflatex
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install recent cabal/ghc
+ uses: haskell/actions/setup@v1
+ with:
+ ghc-version: 8.10.4
+ cabal-version: 3.2
+
+ # needed by memory
+ - name: Install numa
+ run: sudo apt-get install libnuma-dev
+
+ # needed by memory
+ - name: Install texlive
+ run: sudo apt-get install texlive-latex-recommended
+
+ # declare/restore cached things
+ # caching doesn't work for scheduled runs yet
+ # https://github.com/actions/cache/issues/63
+
+ - name: Cache cabal global package db
+ id: cabal-global
+ uses: actions/cache@v2
+ with:
+ path: |
+ ~/.cabal
+ key: ${{ runner.os }}-8.10.4-3.2-cabal-global-${{ hashFiles('cabal.project') }}
+
+ - name: Cache cabal work
+ id: cabal-local
+ uses: actions/cache@v2
+ with:
+ path: |
+ dist-newstyle
+ key: ${{ runner.os }}-8.10.4-3.2-cabal-local
+
+ - name: Install dependencies
+ run: |
+ cabal v2-update
+ cabal v2-build --dependencies-only --enable-tests --disable-optimization
+
+ - name: Test pdf creation with pdf-engine
+ run: |
+ cabal v2-run --disable-optimization pandoc -- --pdf-engine=${{ matrix.pdfengine }} -o out.pdf
+
windows:
runs-on: windows-2019