From ca46dc8a661fc2056041d22eb9320ffec8e605c9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 7 Nov 2022 08:42:08 -0800 Subject: make_artifacts.sh: add a 'cabal test' as a sanity check. It's possible that changes in upstream packages could make a test fail, and we wouldn't want to release. --- linux/make_artifacts.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'linux/make_artifacts.sh') diff --git a/linux/make_artifacts.sh b/linux/make_artifacts.sh index 1acdf4a91..e9262f271 100644 --- a/linux/make_artifacts.sh +++ b/linux/make_artifacts.sh @@ -1,5 +1,7 @@ set -e +CABALOPTS=-f-export-dynamic -fembed_data_files --enable-executable-static --ghc-options '-j4 +RTS -A256m -RTS -split-sections -optc-Os -optl=-pthread' -j4 + MACHINE=$(uname -m) case "$MACHINE" in x86_64) ARCHITECTURE=amd64;; @@ -27,7 +29,8 @@ ghc --version cabal update cabal clean -cabal build -f-export-dynamic -fembed_data_files --enable-executable-static --ghc-options '-j4 +RTS -A256m -RTS -split-sections -optc-Os -optl=-pthread' -j4 all +cabal build $CABALOPTS all +cabal test $CABALOPTS all for f in $(find dist-newstyle -name 'pandoc' -type f -perm /400); do cp $f $ARTIFACTS/; done # Confirm that we have static builds -- cgit v1.2.3