Skip to content

Commit

Permalink
feat(ci): test on all operating systems
Browse files Browse the repository at this point in the history
Signed-off-by: JP-Ellis <josh@jpellis.me>
  • Loading branch information
JP-Ellis committed Jun 24, 2023
1 parent 2812e10 commit 6cfa613
Showing 1 changed file with 45 additions and 20 deletions.
65 changes: 45 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,60 @@ env:
TEXMFHOME: ${{ github.workspace }}

jobs:
test:
runs-on: ubuntu-latest
container: texlive/texlive:latest-medium
# test:
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- name: Checkout code
uses: actions/checkout@v3
# runs-on: ${{ matrix.os }}

- name: Compile pdfLaTeX
run: |
pdflatex -halt-on-error -jobname test-all.pdflatex tests/test-all.tex
# steps:
# - name: Setup TeX Live
# uses: teatimeguest/setup-texlive-action@v2
# with:
# packages: >
# scheme-basic
# pgf
# pgfopts

- name: Compile LuaLaTeX
run: |
lualatex --halt-on-error --jobname test-all.lualatex tests/test-all.tex
# - name: Checkout code
# uses: actions/checkout@v3

- name: Upload PDF outputs
uses: actions/upload-artifact@v3
with:
name: test-all
path: |
test-all.pdflatex.pdf
test-all.lualatex.pdf
# - name: Compile pdfLaTeX
# run: |
# pdflatex -halt-on-error -jobname test-all.pdflatex tests/test-all.tex

# - name: Compile LuaLaTeX
# run: |
# lualatex --halt-on-error --jobname test-all.lualatex tests/test-all.tex

# - name: Upload PDF outputs
# uses: actions/upload-artifact@v3
# with:
# name: test-all
# path: |
# test-all.pdflatex.pdf
# test-all.lualatex.pdf

docs:
runs-on: ubuntu-latest
container: texlive/texlive:latest-full

steps:
- name: Setup TeX Live
uses: teatimeguest/setup-texlive-action@v2
with:
packages: >
scheme-basic
pgf
pgfopts
l3build
fontspec
microtype
etoolbox
titlesec
footmisc
bigfoot
- name: Checkout code
uses: actions/checkout@v3

Expand Down

0 comments on commit 6cfa613

Please sign in to comment.