diff --git a/.github/scripts/common.sh b/.github/scripts/common.sh index 480c6ba..7fe2688 100644 --- a/.github/scripts/common.sh +++ b/.github/scripts/common.sh @@ -167,13 +167,15 @@ install_ghcup() { strip_binary() { ( set -e - binary=$1 - if [ "${RUNNER_OS}" = "macOS" ] ; then - strip "${binary}" - else - if [ "${RUNNER_OS}" != "Windows" ] ; then + local binary=$1 + case "$(uname -s)" in + "Darwin"|"darwin") + ;; + MSYS_*|MINGW*) + ;; + *) strip -s "${binary}" - fi - fi + ;; + esac ) }