mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-10 14:40:32 +00:00
Revert "Adjust host env check"
This reverts commit 5b5badbee3.
Fixes #29
This commit is contained in:
15
main.sh
15
main.sh
@@ -161,16 +161,6 @@ if [[ ! -d "${cargo_bin}" ]]; then
|
|||||||
cargo_bin=/usr/local/bin
|
cargo_bin=/usr/local/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Refs: https://github.com/rust-lang/rustup/blob/HEAD/rustup-init.sh
|
|
||||||
case "${OSTYPE}" in
|
|
||||||
linux*)
|
|
||||||
host_env="gnu"
|
|
||||||
if ldd --version 2>&1 | grep -q 'musl'; then
|
|
||||||
host_env="musl"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
for tool in "${tools[@]}"; do
|
for tool in "${tools[@]}"; do
|
||||||
if [[ "${tool}" == *"@"* ]]; then
|
if [[ "${tool}" == *"@"* ]]; then
|
||||||
version="${tool#*@}"
|
version="${tool#*@}"
|
||||||
@@ -300,8 +290,9 @@ for tool in "${tools[@]}"; do
|
|||||||
# https://nexte.st/book/pre-built-binaries.html
|
# https://nexte.st/book/pre-built-binaries.html
|
||||||
case "${OSTYPE}" in
|
case "${OSTYPE}" in
|
||||||
linux*)
|
linux*)
|
||||||
case "${host_env}" in
|
host_triple
|
||||||
gnu) url="https://get.nexte.st/${version}/linux" ;;
|
case "${host}" in
|
||||||
|
*-linux-gnu*) url="https://get.nexte.st/${version}/linux" ;;
|
||||||
*) url="https://get.nexte.st/${version}/linux-musl" ;;
|
*) url="https://get.nexte.st/${version}/linux-musl" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user