From 6911fffa963f8bfba2bbf208efae0ec168f33369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Mon, 3 Jul 2023 20:09:42 +0200 Subject: [PATCH] Add a script to test-build everything --- build-all.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 build-all.sh diff --git a/build-all.sh b/build-all.sh new file mode 100755 index 0000000..b6ae0af --- /dev/null +++ b/build-all.sh @@ -0,0 +1,21 @@ +#!/bin/sh -e +# Test whether all projects can be downloaded and built, +# in all available configurations--Nix introspection is a bit complicated, +# so they're listed explicitly. + +build() { + echo "$(tput bold)-- Building $*$(tput sgr0)" + nix-build --arg local ${LOCAL:-false} "$@" + echo +} + +for target in *.nix +do + [ "$target" = default.nix ] && continue + + build "$target" + build "$target" --arg full false +done + +build pdf-simple-sign-master.nix --arg go true +build fiv-master.nix --arg withResvg true