Strip release binaries

This commit is contained in:
2020-05-30 22:15:48 +02:00
parent be93a98bd4
commit a1bcc4b51f
2 changed files with 5 additions and 2 deletions

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}"