aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2025-08-03 10:18:36 +0800
committerAaron LI <aly@aaronly.me>2025-08-03 10:18:36 +0800
commitd26d8ab511dde6160f01c966146aa0edc3d1cf97 (patch)
treedadf12e742bde52404fcc94c5ef48daa6c83f240 /.github
parentcf68879d9d30fc398e5c3953fcae516a6bf73547 (diff)
downloadresume-d26d8ab511dde6160f01c966146aa0edc3d1cf97.tar.bz2
github: Add build on 'ubuntu-24.04' and fix 'tlmgr install' failure
"tlmgr install" would warn about "check_file_and_remove: neither checksum nor checksize available for ..." and may exit with an error, although the package is correctly installed. So ignore the error exit. It seems the latest tlmgr fixed the error exit; i.e., it still prints the warning but doesn't exit with an error. Credit: https://tug.org/pipermail/tex-live/2022-November/048688.html
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml31
1 files changed, 30 insertions, 1 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 233d960..95f1c72 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -7,8 +7,37 @@ on:
push:
branches:
- master
+
jobs:
- all:
+ ubuntu-24.04:
+ # see https://github.com/actions/runner-images
+ runs-on: ubuntu-24.04
+ steps:
+ - uses: actions/checkout@v4
+ - name: install deps
+ # texlive-lang-cjk -> xeCJK.sty
+ # texlive-lang-chinese -> ctexhook.sty
+ # texlive-fonts-recommended -> pzdr.tfm (required by mktextfm pzdr)
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y --no-install-recommends make ghostscript
+ sudo apt-get install -y --no-install-recommends latexmk texlive-xetex
+ sudo apt-get install -y --no-install-recommends texlive-lang-cjk texlive-lang-chinese
+ sudo apt-get install -y --no-install-recommends fonts-ibm-plex fonts-noto-cjk texlive-fonts-recommended
+ - name: install fontawesome5
+ # Manually download the package and install it because the remote archive
+ # is newer (currently 2025 vs 2023).
+ # NOTE: "tlmgr install" would warn about "check_file_and_remove: neither
+ # checksum nor checksize available for ..." and may exit with an error,
+ # although the package is correctly installed. So ignore the error exit.
+ run: |
+ wget https://mirror.ctan.org/systems/texlive/tlnet/archive/fontawesome5.tar.xz
+ tlmgr --usermode init-usertree
+ tlmgr --usermode install --file fontawesome5.tar.xz || true
+ - name: build pdfs
+ run: make
+
+ ubuntu-22.04:
# see https://github.com/actions/runner-images
runs-on: ubuntu-22.04
steps: