Update setup-variables.sh

This commit is contained in:
Andrea Cavalli 2020-12-26 13:50:34 +01:00
parent d383396097
commit 64277f4221

View File

@ -15,7 +15,7 @@ export GH_CPU_ARCH=$(echo $GH_MATRIX_ARCH | sed -$PCRE 's/^(linux\/|windows\/|ma
export GH_OS_NAME=$(echo $GH_MATRIX_ARCH | sed -$PCRE 's/^((linux)\/|(windows)\/|(macos)\/)?(386|amd64|arm64|ppc64le|arm)(\/(v6|v7))?$/\2\3\4/g')
if [[ -z "$GH_OS_NAME" ]]; then
export GH_OS_NAME=$(echo $GH_MATRIX_OS | sed -$PCRE 's/^([^-]+)/\1/g')
export GH_OS_NAME=$(echo $GH_MATRIX_OS | sed -$PCRE 's/^([^-]+).*$/\1/g')
fi
if [[ "$GH_CPU_ARCH" == "arm64" ]]; then