Skip to content

Commit

Permalink
use architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSackerberg authored Mar 18, 2024
1 parent 68d5c77 commit a36d736
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,15 @@ jobs:
elif [[ "${RUNNER_OS}" == "macOS-14" ]]; then
binary_path="sugar-macos-m1-latest"
elif [[ "${RUNNER_OS}" == "macOS" ]]; then
binary_path="sugar-macos-intel-latest"
arch=$(uname -m)
if [[ "${arch}" == "x86_64" ]]; then
binary_path="sugar-macos-intel-latest"
elif [[ "${arch}" == "arm64" ]]; then
binary_path="sugar-macos-m1-latest"
else
echo "error: unknown macOS architecture: ${arch}"
exit 1
fi
elif [[ "${RUNNER_OS}" == "Linux" ]]; then
binary_path="sugar-ubuntu-latest"
else
Expand Down

0 comments on commit a36d736

Please sign in to comment.