Skip to content

Commit

Permalink
add macos-14 runner to build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelvanderwaal committed Mar 18, 2024
1 parent b496da2 commit 2b2ab07
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 @@ -15,9 +15,13 @@ jobs:
- windows-latest
- buildjet-16vcpu-ubuntu-2004
- macos-latest
- macos-14

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

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

steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -45,7 +49,11 @@ jobs:
binary_path="metaboss-windows-latest${binary_extension}"
fi
if [[ "${RUNNER_OS}" == "macOS" ]]; then
binary_path="metaboss-macos-intel-latest${binary_extension}"
if [[ "${MATRIX_OS}" == "macos-14" ]]; then
binary_path="metaboss-macos-m1-latest"
else
binary_path="metaboss-macos-intel-latest"
fi
fi
mv "target/release/metaboss${binary_extension}" "${binary_path}"
echo "::set-output name=binary_path::${binary_path}"
Expand Down

0 comments on commit 2b2ab07

Please sign in to comment.