Skip to content

github: Add build on 'ubuntu-24.04' and fix 'tlmgr install' failure #18

github: Add build on 'ubuntu-24.04' and fix 'tlmgr install' failure

github: Add build on 'ubuntu-24.04' and fix 'tlmgr install' failure #18

Workflow file for this run

on:

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

(Line: 12, Col: 3): The identifier 'ubuntu-24.04' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters., (Line: 40, Col: 3): The identifier 'ubuntu-22.04' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
# manually running a workflow
workflow_dispatch:
# upon pull requests
pull_request:
# upon push to 'master' branch
push:
branches:
- master
jobs:
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:
- 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
# the shipped texlive is 2021 and is older than the remote (currently 2023),
# so need to manually download the package and install it.
run: |
wget --no-check-certificate 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