Skip to content

Commit

Permalink
feat: add aarch64-apple-darwin release binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
mickvandijke committed Aug 2, 2024
1 parent b24f5b7 commit 91be520
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
target: x86_64-pc-windows-msvc
- os: macos-latest
target: x86_64-apple-darwin
- os: macos-latest
target: aarch64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
steps:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
target: x86_64-pc-windows-msvc
- os: macos-latest
target: x86_64-apple-darwin
- os: macos-latest
target: aarch64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
- os: ubuntu-latest
Expand Down Expand Up @@ -76,6 +78,10 @@ jobs:
with:
name: safeup-x86_64-apple-darwin
path: artifacts/x86_64-apple-darwin/release
- uses: actions/download-artifact@master
with:
name: safeup-aarch64-apple-darwin
path: artifacts/aarch64-apple-darwin/release
- uses: actions/download-artifact@master
with:
name: safeup-arm-unknown-linux-musleabi
Expand Down
2 changes: 2 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ build-release-artifacts arch:
supported_archs=(
"x86_64-pc-windows-msvc"
"x86_64-apple-darwin"
"aarch64-apple-darwin"
"x86_64-unknown-linux-musl"
"arm-unknown-linux-musleabi"
"armv7-unknown-linux-musleabihf"
Expand Down Expand Up @@ -58,6 +59,7 @@ package-release-assets:
architectures=(
"x86_64-pc-windows-msvc"
"x86_64-apple-darwin"
"aarch64-apple-darwin"
"x86_64-unknown-linux-musl"
"arm-unknown-linux-musleabi"
"armv7-unknown-linux-musleabihf"
Expand Down
8 changes: 7 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ function detect_arch() {
arch_triple="x86_64-unknown-$os-musl"
fi
;;
aarch64*) arch_triple="aarch64-unknown-$os-musl" ;;
aarch64*)
if [[ $os == "mac" ]]; then
arch_triple="aarch64-apple-darwin"
else
arch_triple="aarch64-unknown-$os-musl"
fi
;;
arm64*)
if [[ $os == "mac" ]]; then
echo "Mac arm64 architecture not supported, installing x86_64 version"
Expand Down

0 comments on commit 91be520

Please sign in to comment.