Skip to content

Commit

Permalink
feat: aarch64 target rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed May 24, 2024
1 parent b89edbc commit a7becbd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/help.overview
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ printf "https://github.com/nim-works/nimskull\n\n"

printf "supported architectures:\n"
printf "\tx86_64-linux-gnu\n"
printf "\tx86_64-apple-darwin\n\n"
printf "\tx86_64-apple-darwin\n"
printf "\tarm64-apple-darwin\n\n"
printf "operating system requirements:\n\n"
8 changes: 8 additions & 0 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ check_sha256() {
# compare sha256 of src and dst on macos; fail if mismatch
shasum -a 256 --check --status <(echo "$src $dst") || fail "Checksum mismatch for $dst"
;;
aarch64-apple-darwin)
# compare sha256 of src and dst on macos; fail if mismatch
shasum -a 256 --check --status <(echo "$src $dst") || fail "Checksum mismatch for $dst"
;;
*)
fail "Unsupported target triple '$target'"
;;
Expand All @@ -100,6 +104,10 @@ download_release() {
platform="macosx_amd64"
;;
arm64-apple-darwin)
platform="macosx_arm64"
target="aarch64-apple-darwin"
;;
aarch64-apple-darwin)
platform="macosx_arm64"
;;
*)
Expand Down

0 comments on commit a7becbd

Please sign in to comment.