mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-11 07:00:25 +00:00
ci: Test ubuntu-22.04-arm and ubuntu-24.04-arm
https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -47,7 +47,9 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
# NB: Sync list with https://github.com/taiki-e/checkout-action/blob/HEAD/.github/workflows/ci.yml
|
# NB: Sync list with https://github.com/taiki-e/checkout-action/blob/HEAD/.github/workflows/ci.yml
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
|
- os: ubuntu-22.04-arm
|
||||||
- os: ubuntu-24.04
|
- os: ubuntu-24.04
|
||||||
|
- os: ubuntu-24.04-arm
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
tool: major.minor.patch
|
tool: major.minor.patch
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
|
|||||||
4
main.sh
4
main.sh
@@ -740,9 +740,9 @@ for tool in "${tools[@]}"; do
|
|||||||
read_manifest "${tool}" "${version}"
|
read_manifest "${tool}" "${version}"
|
||||||
if [[ "${download_info}" == "null" ]]; then
|
if [[ "${download_info}" == "null" ]]; then
|
||||||
if [[ "${rust_crate}" == "null" ]]; then
|
if [[ "${rust_crate}" == "null" ]]; then
|
||||||
bail "${tool}@${version} for '${host_os}' is not supported"
|
bail "${tool}@${version} for '${host_arch}_${host_os}' is not supported"
|
||||||
fi
|
fi
|
||||||
warn "${tool}@${version} for '${host_os}' is not supported; fallback to cargo-binstall"
|
warn "${tool}@${version} for '${host_arch}_${host_os}' is not supported; fallback to cargo-binstall"
|
||||||
case "${version}" in
|
case "${version}" in
|
||||||
latest) unsupported_tools+=("${rust_crate}") ;;
|
latest) unsupported_tools+=("${rust_crate}") ;;
|
||||||
*) unsupported_tools+=("${rust_crate}@${version}") ;;
|
*) unsupported_tools+=("${rust_crate}@${version}") ;;
|
||||||
|
|||||||
@@ -110,6 +110,12 @@ case "$(uname -s)" in
|
|||||||
;;
|
;;
|
||||||
*) bail "unrecognized OS type '$(uname -s)'" ;;
|
*) bail "unrecognized OS type '$(uname -s)'" ;;
|
||||||
esac
|
esac
|
||||||
|
# See main.sh
|
||||||
|
case "$(uname -m)" in
|
||||||
|
aarch64 | arm64) host_arch=aarch64 ;;
|
||||||
|
xscale | arm | armv*l) bail "32-bit Arm runner is not supported yet by this action; if you need support for this platform, please submit an issue at <https://github.com/taiki-e/install-action>" ;;
|
||||||
|
*) host_arch=x86_64 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
tools=()
|
tools=()
|
||||||
for manifest in tools/codegen/base/*.json; do
|
for manifest in tools/codegen/base/*.json; do
|
||||||
@@ -120,9 +126,13 @@ for manifest in tools/codegen/base/*.json; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
case "${host_os}" in
|
case "${host_os}" in
|
||||||
linux*) ;;
|
linux*)
|
||||||
|
if [[ "${host_arch}" != "x86_64" ]] && [[ "$(jq -r ".platform.${host_arch}_${host_os}_gnu" "${manifest}")" == "null" ]] && [[ "$(jq -r ".platform.${host_arch}_${host_os}_musl" "${manifest}")" == "null" ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
if [[ "$(jq -r ".platform.x86_64_${host_os}" "${manifest}")" == "null" ]]; then
|
if [[ "$(jq -r ".platform.x86_64_${host_os}" "${manifest}")" == "null" ]] && [[ "$(jq -r ".platform.${host_arch}_${host_os}" "${manifest}")" == "null" ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user