Strip release binaries

This commit is contained in:
Julian Ospald 2020-05-30 22:15:48 +02:00
parent be93a98bd4
commit a1bcc4b51f
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
2 changed files with 5 additions and 2 deletions

View File

@ -26,5 +26,6 @@ fi
mkdir out
cp "$(ecabal new-exec -w ghc-${GHC_VERSION} --verbose=0 --offline sh -- -c 'command -v ghcup')" .
ver=$(./ghcup --numeric-version)
strip -s ./ghcup
cp ghcup out/${ARTIFACT}-${ver}

View File

@ -1,4 +1,4 @@
#/bin/sh
#!/bin/sh
set -ex
@ -19,4 +19,6 @@ ghcup set 8.8.3
cabal update
cabal build --constraint="zlib static" --constraint="lzma static"
cp "$(cabal new-exec --verbose=0 --offline sh -- -c 'command -v ghcup')" "./${ARTIFACT}"
cp "$(cabal new-exec --verbose=0 --offline sh -- -c 'command -v ghcup')" .
strip -s ghcup
cp ghcup "./${ARTIFACT}"