Skip to content

Commit

Permalink
Fix m1 pipeline (#475)
Browse files Browse the repository at this point in the history
* Update build.yml

* use architecture

* Update build.yml

* Update build.yml

* revert to fully architecture based naming
  • Loading branch information
MarkSackerberg authored Mar 20, 2024
1 parent ad98b4e commit 64fb1f6
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 @@ -17,9 +17,13 @@ jobs:
- windows-latest
- ubuntu-latest
- macos-latest
- macos-14

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

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

steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -50,7 +54,11 @@ jobs:
binary_extension=".exe"
binary_path="sugar-windows-latest${binary_extension}"
elif [[ "${RUNNER_OS}" == "macOS" ]]; then
binary_path="sugar-macos-intel-latest"
if [[ "${MATRIX_OS}" == "macos-14" ]]; then
binary_path="sugar-macos-m1-latest"
else
binary_path="sugar-macos-intel-latest"
fi
elif [[ "${RUNNER_OS}" == "Linux" ]]; then
binary_path="sugar-ubuntu-latest"
else
Expand Down

0 comments on commit 64fb1f6

Please sign in to comment.