mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-15 15:31:44 +00:00
fix: bump to latest wrapper
This commit is contained in:
parent
fdd8fac24b
commit
149664a835
1 changed files with 18 additions and 11 deletions
29
dist/codecov.sh
vendored
29
dist/codecov.sh
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
CC_WRAPPER_VERSION="0.0.18"
|
CC_WRAPPER_VERSION="0.0.19"
|
||||||
say() {
|
say() {
|
||||||
echo -e "$1"
|
echo -e "$1"
|
||||||
}
|
}
|
||||||
|
|
@ -40,6 +40,7 @@ say " _____ _
|
||||||
"
|
"
|
||||||
CC_VERSION="${CC_VERSION:-latest}"
|
CC_VERSION="${CC_VERSION:-latest}"
|
||||||
CC_FAIL_ON_ERROR="${CC_FAIL_ON_ERROR:-false}"
|
CC_FAIL_ON_ERROR="${CC_FAIL_ON_ERROR:-false}"
|
||||||
|
CC_OS="linux"
|
||||||
if [ -n "$CC_BINARY" ];
|
if [ -n "$CC_BINARY" ];
|
||||||
then
|
then
|
||||||
if [ -f "$CC_BINARY" ];
|
if [ -f "$CC_BINARY" ];
|
||||||
|
|
@ -49,16 +50,22 @@ then
|
||||||
exit_if_error "Could not find binary file $CC_BINARY"
|
exit_if_error "Could not find binary file $CC_BINARY"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
family=$(uname -s | tr '[:upper:]' '[:lower:]')
|
if [ -n "$CC_OS" ];
|
||||||
cc_os="windows"
|
then
|
||||||
[[ $family == "darwin" ]] && cc_os="macos"
|
say "$g==>$x Overridden OS: $b${CC_OS}$x"
|
||||||
[[ $family == "linux" ]] && cc_os="linux"
|
export cc_os=${CC_OS}
|
||||||
[[ $cc_os == "linux" ]] && \
|
else
|
||||||
osID=$(grep -e "^ID=" /etc/os-release | cut -c4-)
|
family=$(uname -s | tr '[:upper:]' '[:lower:]')
|
||||||
[[ $osID == "alpine" ]] && cc_os="alpine"
|
cc_os="windows"
|
||||||
[[ $(arch) == "aarch64" && $family == "linux" ]] && cc_os+="-arm64"
|
[[ $family == "darwin" ]] && cc_os="macos"
|
||||||
say "$g==>$x Detected $b${cc_os}$x"
|
[[ $family == "linux" ]] && cc_os="linux"
|
||||||
export cc_os=${cc_os}
|
[[ $cc_os == "linux" ]] && \
|
||||||
|
osID=$(grep -e "^ID=" /etc/os-release | cut -c4-)
|
||||||
|
[[ $osID == "alpine" ]] && cc_os="alpine"
|
||||||
|
[[ $(arch) == "aarch64" && $family == "linux" ]] && cc_os+="-arm64"
|
||||||
|
say "$g==>$x Detected $b${cc_os}$x"
|
||||||
|
export cc_os=${cc_os}
|
||||||
|
fi
|
||||||
export cc_version=${CC_VERSION}
|
export cc_version=${CC_VERSION}
|
||||||
cc_filename="codecov"
|
cc_filename="codecov"
|
||||||
[[ $cc_os == "windows" ]] && cc_filename+=".exe"
|
[[ $cc_os == "windows" ]] && cc_filename+=".exe"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue