mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-09 14:20:29 +00:00
ci: Test AArch64 Windows
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -82,6 +82,7 @@ jobs:
|
|||||||
bash: msys64
|
bash: msys64
|
||||||
- os: windows-2025
|
- os: windows-2025
|
||||||
bash: cygwin
|
bash: cygwin
|
||||||
|
- os: windows-11-arm
|
||||||
- os: windows-2022
|
- os: windows-2022
|
||||||
tool: major.minor.patch
|
tool: major.minor.patch
|
||||||
- os: windows-2022
|
- os: windows-2022
|
||||||
@@ -139,7 +140,7 @@ jobs:
|
|||||||
if [[ "$(cargo binstall -V)" != "$(jq -r '.latest.version' manifests/cargo-binstall.json)" ]]; then
|
if [[ "$(cargo binstall -V)" != "$(jq -r '.latest.version' manifests/cargo-binstall.json)" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if: matrix.bash != 'cygwin'
|
if: matrix.bash != 'cygwin' && matrix.os != 'windows-11-arm'
|
||||||
|
|
||||||
test-container:
|
test-container:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
5
main.sh
5
main.sh
@@ -538,7 +538,10 @@ case "$(uname -m)" in
|
|||||||
# https://github.com/actions/runner/blob/v2.321.0/.github/workflows/build.yml#L21
|
# https://github.com/actions/runner/blob/v2.321.0/.github/workflows/build.yml#L21
|
||||||
# https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#supported-architectures-and-operating-systems-for-self-hosted-runners
|
# https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#supported-architectures-and-operating-systems-for-self-hosted-runners
|
||||||
# So we can assume x86_64 unless it is AArch64 or Arm.
|
# So we can assume x86_64 unless it is AArch64 or Arm.
|
||||||
*) host_arch=x86_64 ;;
|
*)
|
||||||
|
# TODO: uname -m on windows-11-arm returns "x86_64"
|
||||||
|
host_arch=x86_64
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
info "host platform: ${host_arch}_${host_os}"
|
info "host platform: ${host_arch}_${host_os}"
|
||||||
|
|
||||||
|
|||||||
@@ -124,7 +124,10 @@ esac
|
|||||||
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 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>" ;;
|
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 ;;
|
*)
|
||||||
|
# TODO: uname -m on windows-11-arm returns "x86_64"
|
||||||
|
host_arch=x86_64
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
tools=()
|
tools=()
|
||||||
|
|||||||
Reference in New Issue
Block a user