Skip to content

Commit

Permalink
refactor(ci): use Nix for Mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovyerus committed Jul 10, 2024
1 parent 6f6fe33 commit a262e24
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,19 @@ jobs:
- aarch64
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: cachix/install-nix-action@v26
with:
toolchain: stable-apple-darwin
target: ${{ matrix.target }}-apple-darwin
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build
run: cargo build --release --target ${{ matrix.target }}-apple-darwin
- run: nix build .#cross-${{ matrix.target }}-darwin

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

build-windows:
runs-on: windows-2022
Expand Down

0 comments on commit a262e24

Please sign in to comment.