From 5d83c0497eec8efe72e2f6f7a414bb49d9e9c1f2 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[EMAIL REDACTED]>
Date: Fri, 6 May 2022 11:36:44 +0100
Subject: [PATCH] workflows: Run showfont
We can't be very thorough here, but this is a simple check that it's
working at all.
Signed-off-by: Simon McVittie <smcv@collabora.com>
---
.github/workflows/main.yml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 0d7cd4e..264fcb5 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -45,6 +45,8 @@ jobs:
autoconf \
automake \
cmake \
+ file \
+ fonts-dejavu-core \
libfreetype-dev \
libharfbuzz-dev \
libsdl2-dev \
@@ -87,6 +89,13 @@ jobs:
set -eu
parallel="$(getconf _NPROCESSORS_ONLN)"
make -j"${parallel}" -C build-autotools V=1
+ - name: Test using showfont
+ if: "runner.os == 'Linux' && ! matrix.platform.cmake"
+ run: |
+ # Just check that it doesn't crash, we can't really test the results...
+ env -C build-autotools SDL_VIDEODRIVER=dummy ./showfont -dump /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
+ # ... but we can at least assert that it outputs a .bmp
+ file build-autotools/glyph-100.bmp
- name: Install with Autotools
if: "! matrix.platform.cmake"
run: |