Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSackerberg committed Mar 18, 2024
1 parent 75c44c0 commit 5801dcb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:

runs-on: ${{ matrix.os }}

env:
MATRIX_OS: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -51,14 +54,10 @@ jobs:
binary_extension=".exe"
binary_path="sugar-windows-latest${binary_extension}"
elif [[ "${RUNNER_OS}" == "macOS" ]]; then
arch=$(uname -m)
if [[ "${arch}" == "x86_64" ]]; then
binary_path="sugar-macos-intel-latest"
elif [[ "${arch}" == "arm64" ]]; then
if [[ "${MATRIX_OS}" == "macos-14" ]]; then
binary_path="sugar-macos-m1-latest"
else
echo "error: unknown macOS architecture: ${arch}"
exit 1
binary_path="sugar-macos-intel-latest"
fi
elif [[ "${RUNNER_OS}" == "Linux" ]]; then
binary_path="sugar-ubuntu-latest"
Expand Down

0 comments on commit 5801dcb

Please sign in to comment.