stone-zeng / fduthesis

LaTeX thesis template for Fudan University
LaTeX Project Public License v1.3c
829 stars 208 forks source link

`main.yml` 没有一致使用指定的 CTAN 镜像 #330

Open muzimuzhi opened 6 months ago

muzimuzhi commented 6 months ago

main.yml 没有一致使用存在 env.CTAN_URL 的 CTAN 镜像,会导致 CI 结果不稳定。

目前的 main.yml

https://github.com/stone-zeng/fduthesis/blob/d84e0dd7df657d47943e98c98ff843cc1336bc5f/.github/workflows/main.yml#L5-L6 https://github.com/stone-zeng/fduthesis/blob/d84e0dd7df657d47943e98c98ff843cc1336bc5f/.github/workflows/main.yml#L25-L32

从提高 CI 结果稳定性的角度,tlmgr 的所有命令都支持 --repository 选项,也可以通过 tlmgr option repository <uri> 一次性设置。

从简化 workflow 设置、缩短 CI 运行时间的角度,也许可以像 CTeX-org/ctex-kit 里那样(https://github.com/CTeX-org/ctex-kit/pull/683/commits/dc9e68d9262daf3bc1cabde8d2567a51c01d6773 ),使用 action teatimeguest/setup-texlive-action。它能自动缓存 texlive 安装目录、自动设置 PATH,最近也支持了指定 CTAN 镜像 (v3.1.0)。