From a1bcc4b51f9d3ba50d65aedd57d474fd0b61e54b Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 30 May 2020 22:15:48 +0200 Subject: [PATCH] Strip release binaries --- .gitlab/script/ghcup_release.sh | 1 + .travis/build.sh | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab/script/ghcup_release.sh b/.gitlab/script/ghcup_release.sh index 44c86f1..b19c238 100755 --- a/.gitlab/script/ghcup_release.sh +++ b/.gitlab/script/ghcup_release.sh @@ -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} diff --git a/.travis/build.sh b/.travis/build.sh index e577df7..0d12d2c 100755 --- a/.travis/build.sh +++ b/.travis/build.sh @@ -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}"