From 5fc5e4e7cf6455743a6801ce9a694b2d73be6153 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Fri, 22 Dec 2023 23:31:39 +0100 Subject: [PATCH] build-sys: fail build for untracked files MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit All build artifacts should be covered by a gitignore entry. Validate that at build-time. Signed-off-by: Thomas Weißschuh --- .github/workflows/cibuild.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/cibuild.sh b/.github/workflows/cibuild.sh index be466daa25..1b5a3db67c 100755 --- a/.github/workflows/cibuild.sh +++ b/.github/workflows/cibuild.sh @@ -120,6 +120,13 @@ for phase in "${PHASES[@]}"; do MAKE) make -j"$(nproc)" make -j"$(nproc)" check-programs + + untracked_files="$(git ls-files --others --exclude-standard)" + if [ -n "$untracked_files" ]; then + echo "Untracked files" + echo "$untracked_files" + exit 1 + fi ;; INSTALL) make install DESTDIR=/tmp/dest -- 2.47.3