X Tutup
Skip to content

Commit 2d4efd1

Browse files
blucapoettering
authored andcommitted
build tests: check that Github pages can be built successfully
1 parent 2adcf6f commit 2d4efd1

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/unit_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ADDITIONAL_DEPS=(
66
clang
77
expect
88
fdisk
9+
jekyll
910
libfdisk-dev
1011
libfido2-dev
1112
libp11-kit-dev

meson.build

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3501,6 +3501,21 @@ meson.add_install_script('sh', '-c', 'touch $DESTDIR@0@'.format(prefixdir))
35013501

35023502
############################################################
35033503

3504+
# Ensure that changes to the docs/ directory do not break the
3505+
# basic Github pages build. But only run it in developer mode,
3506+
# as it might be fragile due to changes in the tooling, and it is
3507+
# not generally useful for users.
3508+
jekyll = find_program('jekyll', required : false)
3509+
if get_option('mode') == 'developer' and want_tests != 'false' and jekyll.found()
3510+
test('github-pages',
3511+
jekyll,
3512+
args : ['build',
3513+
'--source', join_paths(project_source_root, 'docs'),
3514+
'--destination', join_paths(project_build_root, '_site')])
3515+
endif
3516+
3517+
############################################################
3518+
35043519
check_help = find_program('tools/check-help.sh')
35053520

35063521
foreach exec : public_programs

0 commit comments

Comments
 (0)
X Tutup