Improve stripping logic
This commit is contained in:
parent
cb0d8b80c3
commit
a5f2067d76
16
.github/scripts/common.sh
vendored
16
.github/scripts/common.sh
vendored
@ -167,13 +167,15 @@ install_ghcup() {
|
|||||||
strip_binary() {
|
strip_binary() {
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
binary=$1
|
local binary=$1
|
||||||
if [ "${RUNNER_OS}" = "macOS" ] ; then
|
case "$(uname -s)" in
|
||||||
strip "${binary}"
|
"Darwin"|"darwin")
|
||||||
else
|
;;
|
||||||
if [ "${RUNNER_OS}" != "Windows" ] ; then
|
MSYS_*|MINGW*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
strip -s "${binary}"
|
strip -s "${binary}"
|
||||||
fi
|
;;
|
||||||
fi
|
esac
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user