mirror of
https://github.com/taiki-e/install-action
synced 2026-09-14 20:13:27 +00:00
Always fall back to cargo install except on MIPS
This commit is contained in:
@@ -598,13 +598,13 @@ case "${RUNNER_ARCH}" in
|
|||||||
info "unrecognized runner.arch '${RUNNER_ARCH}'; fallback to uname -m"
|
info "unrecognized runner.arch '${RUNNER_ARCH}'; fallback to uname -m"
|
||||||
case "$(uname -m)" in
|
case "$(uname -m)" in
|
||||||
aarch64 | arm64) host_arch=aarch64 ;;
|
aarch64 | arm64) host_arch=aarch64 ;;
|
||||||
xscale | arm | armv*l) bail "32-bit Arm runner is currently not supported; if you need support for this platform, please submit an issue at <https://github.com/taiki-e/install-action>" ;;
|
|
||||||
ppc64le) host_arch=powerpc64le ;;
|
ppc64le) host_arch=powerpc64le ;;
|
||||||
riscv64) host_arch=riscv64 ;;
|
riscv64) host_arch=riscv64 ;;
|
||||||
s390x) host_arch=s390x ;;
|
s390x) host_arch=s390x ;;
|
||||||
# Very few tools provide prebuilt binaries for these.
|
# On these platforms, we just use the result of `uname -m` as host_arch, and always fallback to `cargo install`.
|
||||||
# TODO: fallback to `cargo install`? (binstall fallback is not good idea here as cargo-binstall doesn't provide prebuilt binaries for these.)
|
xscale | arm | armv*l | loongarch64 | ppc | ppc64 | sun4v) host_arch="$(uname -m)" ;;
|
||||||
loongarch64 | mips | mips64 | ppc | ppc64 | sun4v) bail "$(uname -m) runner is not supported yet; please submit an issue at <https://github.com/taiki-e/install-action>" ;;
|
# Ignore MIPS for now, as we also need to detect endianness.
|
||||||
|
mips | mips64) bail "MIPS runner is not supported yet; please submit an issue at <https://github.com/taiki-e/install-action>" ;;
|
||||||
# GitHub Actions Runner supports x86_64/AArch64/Arm Linux and x86_64/AArch64 Windows/macOS.
|
# GitHub Actions Runner supports x86_64/AArch64/Arm Linux and x86_64/AArch64 Windows/macOS.
|
||||||
# https://github.com/actions/runner/blob/v2.332.0/.github/workflows/build.yml#L24
|
# https://github.com/actions/runner/blob/v2.332.0/.github/workflows/build.yml#L24
|
||||||
# https://docs.github.com/en/actions/reference/runners/self-hosted-runners#supported-processor-architectures
|
# https://docs.github.com/en/actions/reference/runners/self-hosted-runners#supported-processor-architectures
|
||||||
|
|||||||
Reference in New Issue
Block a user