From 376e39e513830711b5a594fe0073093e5a2b5631 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Fri, 10 Mar 2023 11:03:18 +0100 Subject: [PATCH] CI: Add font with references [why] We had a bug that font-patcher crashes with fonts with references. [how] Just try such a font with all fontforge versions. Just tests if it patches, the patch result is not checked. Signed-off-by: Fini Jastrow --- .github/workflows/font-patcher.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/font-patcher.yml b/.github/workflows/font-patcher.yml index 9fa4f56e7..8fbed9318 100644 --- a/.github/workflows/font-patcher.yml +++ b/.github/workflows/font-patcher.yml @@ -122,3 +122,10 @@ jobs: - name: Check if patched font generated run: | [ -e "$GITHUB_WORKSPACE/temp/Caskaydia Cove Bold Nerd Font Complete.otf" ] && echo "File exists" || exit 1 + + - name: Check if font with references is patched + # (patch result not checked) + run: | + fontforge --script ./font-patcher /usr/share/fonts/truetype/ubuntu/UbuntuMono-R.ttf \ + --quiet --no-progressbars --outputdir $GITHUB_WORKSPACE/temp/ + [ -e "$GITHUB_WORKSPACE/temp/Ubuntu Mono Nerd Font.ttf" ] && echo "File exists" || exit 1