From 2aef1d13e4e8e936407a5b8b0f39a2c6112e0c3f Mon Sep 17 00:00:00 2001 From: ee7 <45465154+ee7@users.noreply.github.com> Date: Tue, 22 Aug 2023 08:00:01 +0200 Subject: [PATCH] fetch-configlet: support fetching arm64 assets The most recent configlet release includes pre-built binaries for: - arm64 Linux [1] - arm64 macOS [2] - arm64 Windows [3] - riscv64 Linux [4] Support arm64 in the bash fetch-configlet script. Refs: 122 [1] 0e8d6659e43d, 2023-08-16, ".github, config: use Zig to cross-compile arm64 Linux asset" [2] f280445978c1, 2023-08-17, ".github: cross-compile arm64 macOS asset" [3] 3824299df1dd, 2023-08-18, ".github, cli, completion: cross-compile arm64 Windows asset" [4] a962b181b54e, 2023-08-17, ".github: cross-compile riscv64 Linux asset" --- scripts/fetch-configlet | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/fetch-configlet b/scripts/fetch-configlet index 4800e150..80abd102 100755 --- a/scripts/fetch-configlet +++ b/scripts/fetch-configlet @@ -24,10 +24,11 @@ get_download_url() { local latest='https://api.github.com/repos/exercism/configlet/releases/latest' local arch case "$(uname -m)" in - x86_64) arch='x86-64' ;; - *686*) arch='i386' ;; - *386*) arch='i386' ;; - *) arch='x86-64' ;; + aarch64|arm64) arch='arm64' ;; + x86_64) arch='x86-64' ;; + *686*) arch='i386' ;; + *386*) arch='i386' ;; + *) arch='x86-64' ;; esac local suffix="${os}_${arch}.${ext}" curl "${curlopts[@]}" --header 'Accept: application/vnd.github.v3+json' "${latest}" |