diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7549f431..b98b5b4d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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