Upgrade docker build images

This commit is contained in:
Vidar Holen
2024-06-24 05:12:21 +00:00
parent c4b7b79b8b
commit 3946cbd4a0
12 changed files with 194 additions and 77 deletions

View File

@@ -2,6 +2,8 @@
set -xe
IFS=';'
{
mkdir -p /tmp/scratch
cd /tmp/scratch
tar xzv --strip-components=1
chmod +x striptests && ./striptests
# Use a freeze file to ensure we use the same dependencies we cached during
@@ -9,7 +11,7 @@ IFS=';'
cp /etc/cabal.project.freeze .
mkdir "$TARGETNAME"
# Retry in case of random segfault
cabal build --enable-executable-static || cabal build --enable-executable-static
scutil retry 3 cabal build --enable-executable-static
find . -name shellcheck -type f -exec mv {} "$TARGETNAME/" \;
ls -l "$TARGETNAME"
"$TARGET-strip" -s "$TARGETNAME/shellcheck"