aboutsummaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-11-07 08:42:08 -0800
committerJohn MacFarlane <[email protected]>2022-11-07 08:42:08 -0800
commitca46dc8a661fc2056041d22eb9320ffec8e605c9 (patch)
tree1038e84f955931f0015010225eb4abff09e17b04 /linux
parent1bc48e9dc5979e9125ff55a8ea87a1aa6a7aaa83 (diff)
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.
Diffstat (limited to 'linux')
-rw-r--r--linux/make_artifacts.sh5
1 files changed, 4 insertions, 1 deletions
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