Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
Add M1 runner to mac build ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bytedream committed Jan 30, 2024
1 parent 0f06c7a commit a2464ba
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,18 @@ jobs:
if-no-files-found: error

build-mac:
runs-on: macos-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-13 uses x86_64, macos-14 aarch64
# see https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
include:
- os: macos-13
arch: x86_64
toolchain: x86_64-apple-darwin
- os: macos-14
arch: aarch64
toolchain: aarch64-apple-darwin
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -85,13 +96,13 @@ jobs:
toolchain: stable

- name: Build
run: cargo build --release --target x86_64-apple-darwin
run: cargo build --release --target ${{ matrix.toolchain }}

- name: Upload binary artifact
uses: actions/upload-artifact@v3
with:
name: crunchy-cli-darwin-x86_64
path: ./target/x86_64-apple-darwin/release/crunchy-cli
name: crunchy-cli-darwin-${{ matrix.arch }}
path: ./target/${{ matrix.toolchain }}/release/crunchy-cli
if-no-files-found: error

build-windows:
Expand Down

0 comments on commit a2464ba

Please sign in to comment.