From 8190259ad5c350fda2c7fd5325af12378c9a9766 Mon Sep 17 00:00:00 2001 From: lofyer Date: Wed, 5 Aug 2026 20:08:44 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=AE=89=E8=A3=85=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E4=B8=8E=20Liberation=20=E5=AD=97=E4=BD=93=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E8=B1=86=E8=85=90=E5=9D=97=E5=92=8C=E7=89=88=E5=BC=8F?= =?UTF-8?q?=E6=B5=8B=E9=87=8F=E5=81=8F=E5=B7=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 91b4292..2e5ab4c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,9 +66,13 @@ jobs: exit 1 } sudo apt-get update > /tmp/apt.log 2>&1 || annotate "apt 更新失败" /tmp/apt.log + # runner 自带字体极少。界面文案是中文,缺 CJK 字体会渲染成豆腐块, + # 文本版式测量也会跟着偏,断言量到的就不是真实排版。 sudo apt-get install -y xvfb libnss3 libatk1.0-0t64 libatk-bridge2.0-0t64 \ - libcups2t64 libgbm1 libasound2t64 libgtk-3-0t64 >> /tmp/apt.log 2>&1 \ + libcups2t64 libgbm1 libasound2t64 libgtk-3-0t64 \ + fonts-liberation fonts-noto-core fonts-noto-cjk >> /tmp/apt.log 2>&1 \ || annotate "运行库安装失败" /tmp/apt.log + fc-cache -f > /dev/null 2>&1 || true # runner 上的 chrome-sandbox 拿不到 root:root 4755,SUID 沙箱起不来。 # 只在 CI 关沙箱,不要把这个开关带进构建产物。 for suite in startup download cover annotation reader-features library-notes ai-scope; do