Skip to content

Commit

Permalink
chore(ci): use dedicated ARM Mac runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovyerus committed Jul 16, 2024
1 parent 1b748da commit e9e756e
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,8 @@ jobs:
name: bandsnatch-linux-${{ matrix.platform.name }}
path: ./result/bin/bandsnatch

build-macos:
build-macos-x86:
runs-on: macos-13
strategy:
matrix:
target:
- x86_64
- aarch64
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -56,11 +51,29 @@ jobs:
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- run: nix build .#cross-${{ matrix.target }}-darwin
- run: nix build

- uses: actions/upload-artifact@v4
with:
name: bandsnatch-macos-x86_64
path: ./result/bin/bandsnatch

build-macos-arm:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: cachix/install-nix-action@v26
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- run: nix build

- uses: actions/upload-artifact@v4
with:
name: bandsnatch-macos-${{ matrix.target }}
name: bandsnatch-macos-aarch64
path: ./result/bin/bandsnatch

build-windows:
Expand Down Expand Up @@ -89,7 +102,8 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
needs:
- build-linux
- build-macos
- build-macos-x86
- build-macos-arm
- build-windows
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit e9e756e

Please sign in to comment.