Browse Source

Update test-build.yml

pull/216/head
jiayouba233 4 years ago
committed by GitHub
parent
commit
1e6819462a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 52
      .github/workflows/test-build.yml

52
.github/workflows/test-build.yml

@ -1,4 +1,4 @@
name: Build LaTeX document name: Build document
on: on:
push: push:
@ -10,52 +10,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build the LaTeX document - name: Build the document
uses: xu-cheng/latex-action@v2
with:
latexmk_use_xelatex: true
latexmk_shell_escape: true
args: "-pdf -file-line-error -halt-on-error -interaction=nonstopmode -8bit"
extra_system_packages: |
unzip
wget
curl
coreutils
nodejs
npm
imagemagick
libwebp
librsvg
git
py3-pygments
inkscape
libxml2
pre_compile: |
wget -q -O notosans.zip "https://noto-website-2.storage.googleapis.com/pkgs/NotoSans-hinted.zip"
wget -q -O notoserif.zip "https://noto-website-2.storage.googleapis.com/pkgs/NotoSerif-hinted.zip"
wget -q -O notoserifcjk.zip "https://noto-website-2.storage.googleapis.com/pkgs/NotoSerifCJKsc-hinted.zip"
wget -q -O notosanscjk.zip "https://noto-website-2.storage.googleapis.com/pkgs/NotoSansCJKsc-hinted.zip"
wget -q -O robotomono.zip "https://fonts.google.com/download?family=Roboto%20Mono"
wget -q "http://mirrors.ctan.org/fonts/cm-unicode.zip"
unzip -q notosans.zip -d notosans
unzip -q notoserif.zip -d notoserif
unzip -q notosanscjk.zip -d notosanscjk
unzip -q notoserifcjk.zip -d notoserifcjk
unzip -q robotomono.zip -d robotomono
unzip -q ./cm-unicode.zip
cp -r notosans notoserif notosanscjk notoserifcjk robotomono cm-unicode/fonts/otf/* /usr/share/fonts
fc-cache
cd remark-latex
npm i
cd ..
cd run
npm i
git clone https://github.com/The-Run-Philosophy-Organization/run.git git clone https://github.com/The-Run-Philosophy-Organization/run.git
node index.js ./run node index.js ./Run
root_file: | root_file: |
run.tex Run.tex
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: run.pdf name: Run.pdf
path: ./run/run.pdf path: ./Run/Run.pdf

Loading…
Cancel
Save