summaryrefslogtreecommitdiff
path: root/.github/workflows/mac.yml
blob: 80a781e82342a8e0cd2dc863c6dc9b63bc79a6c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
on:
  push:
    branches-ignore:
      - '**.tmp'

name: mac
jobs:
  mac:
    runs-on: macos-11
    strategy:
      matrix:
        rust:
          - beta
    steps:
      - uses: actions/checkout@v2

      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: ${{ matrix.rust }}
          override: true

      - name: Cache Rust dependencies
        uses: Swatinem/rust-cache@v1

      # MD5 (OpenZFSonOsX-2.1.0-Big.Sur-11.pkg) = 80bee1c01362372ea3a803fdac56bfaa
      - name: Download OpenZFSonOsX-2.1.0-Big.Sur-11.pkg
        run: curl -o zfs.pkg https://openzfsonosx.org/forum/download/file.php?id=343&sid=4b2c0ab13fa308c9b91ea188ba907d02

      - name: Install openzfs-on-osx
        run: sudo installer -verbose -pkg zfs.pkg -target /

      - name: Build
        uses: actions-rs/cargo@v1
        with:
          command: build
          args: --all-targets --all