forked from xu-cheng/latex-action
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: test
extra_fonts
function on multiple texlive versions
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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() |