mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-08 13:50:32 +00:00
Support aarch64 host more
This commit is contained in:
21
main.sh
21
main.sh
@@ -303,7 +303,12 @@ for tool in "${tools[@]}"; do
|
|||||||
case "${OSTYPE}" in
|
case "${OSTYPE}" in
|
||||||
linux*) target="${host_arch}-unknown-linux-musl" ;;
|
linux*) target="${host_arch}-unknown-linux-musl" ;;
|
||||||
darwin*) target="${host_arch}-apple-darwin" ;;
|
darwin*) target="${host_arch}-apple-darwin" ;;
|
||||||
cygwin* | msys*) target="x86_64-pc-windows-msvc" ;;
|
cygwin* | msys*)
|
||||||
|
case "${tool}" in
|
||||||
|
cargo-llvm-cov) target="x86_64-pc-windows-msvc" ;;
|
||||||
|
*) target="${host_arch}-pc-windows-msvc" ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
||||||
esac
|
esac
|
||||||
url="https://github.com/${repo}/releases/download/v${version}/${tool}-${target}.tar.gz"
|
url="https://github.com/${repo}/releases/download/v${version}/${tool}-${target}.tar.gz"
|
||||||
@@ -497,8 +502,18 @@ for tool in "${tools[@]}"; do
|
|||||||
esac
|
esac
|
||||||
bin_dir="/usr/local/bin"
|
bin_dir="/usr/local/bin"
|
||||||
case "${OSTYPE}" in
|
case "${OSTYPE}" in
|
||||||
linux*) target="linux_amd64" ;;
|
linux*)
|
||||||
darwin*) target="darwin_amd64" ;;
|
case "${host_arch}" in
|
||||||
|
aarch64) target="linux_arm64" ;;
|
||||||
|
*) target="linux_amd64" ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
darwin*)
|
||||||
|
case "${host_arch}" in
|
||||||
|
aarch64) target="darwin_arm64" ;;
|
||||||
|
*) target="darwin_amd64" ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
cygwin* | msys*)
|
cygwin* | msys*)
|
||||||
target="windows_amd64"
|
target="windows_amd64"
|
||||||
bin_dir="${HOME}/.install-action/bin"
|
bin_dir="${HOME}/.install-action/bin"
|
||||||
|
|||||||
Reference in New Issue
Block a user