aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeitian LI <aly@aaronly.me>2024-03-08 14:36:32 +0800
committerGitHub <noreply@github.com>2024-03-08 14:36:32 +0800
commit04c808968236cf8fb61a1b92e9e8d5a6b92c55cb (patch)
treec74d60113b374c7a389a75fd30c92af9accd365d
parent8acae2f191313b209ac80fb1328110c9a14b96e0 (diff)
downloadresume-04c808968236cf8fb61a1b92e9e8d5a6b92c55cb.tar.bz2
Create GitHub Actions
-rw-r--r--.github/workflows/main.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..fdf7a23
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,34 @@
+on:
+ # manually running a workflow
+ workflow_dispatch:
+ # upon pull requests
+ pull_request:
+ # upon push to 'master' branch
+ push:
+ branches:
+ - master
+jobs:
+ all:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: install deps
+ # texlive-plain-generic -> ulem.sty
+ # texlive-lang-chinese -> ctex*
+ # texlive-fonts-recommended -> pzdr.tfm (required by mktextfm pzdr)
+ run: |
+ sudo apt update
+ sudo apt install --no-install-recommends make ghostscript
+ sudo apt install --no-install-recommends fonts-ibm-plex fonts-noto-cjk
+ sudo apt install --no-install-recommends latexmk texlive-xetex
+ sudo apt install --no-install-recommends texlive-plain-generic texlive-lang-chinese texlive-fonts-recommended
+ - name: install fontawesome5
+ # the shipped texlive is 2021 and is older than the remote (currently 2023),
+ # so need to manually download the package and install it.
+ run: |
+ sudo apt install --no-install-recommends wget xz-utils
+ wget https://mirror.ctan.org/systems/texlive/tlnet/archive/fontawesome5.tar.xz
+ tlmgr --usermode init-usertree
+ tlmgr --usermode install --file fontawesome5.tar.xz
+ - name: build pdfs
+ run: make