Skip to content

Commit

Permalink
test: test extra_fonts function on multiple texlive versions
Browse files Browse the repository at this point in the history
  • Loading branch information
zydou committed Aug 25, 2023
1 parent 8c9adec commit 798d736
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/test-extra-fonts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: test extra-fonts

on:
workflow_dispatch:
push:
branches:
- test-extra-fonts

jobs:
test:
strategy:
fail-fast: false
matrix:
texlive_version: [20210301, 20220301, 20230301, latest]
name: Test ${{matrix.texlive_version}}
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3

- name: Select texlive version
run: |
sed -i "s/texlive-full:latest/texlive-full:${{ matrix.texlive_version }}/" Dockerfile
cat Dockerfile
- name: Download extra fonts
run: |
curl -OL https://github.com/google/fonts/raw/main/ofl/notosans/NotoSans-Regular.ttf
- name: Compile LaTeX document with extra_fonts
uses: ./
with:
root_file: extra_fonts.tex
working_directory: test/
latexmk_use_xelatex: true
extra_fonts: "./../NotoSans-Regular.ttf"

- name: Check pdf files
run: |
file test/extra_fonts.pdf | grep -q ' PDF '
- name: Upload
uses: actions/upload-artifact@v3
with:
name: test
path: test
if: always()

0 comments on commit 798d736

Please sign in to comment.