diff options
author | Cody P Schafer <dev@codyps.com> | 2021-08-04 15:52:25 -0400 |
---|---|---|
committer | Cody P Schafer <dev@codyps.com> | 2021-08-04 15:52:25 -0400 |
commit | 7a1198cf3882e3d63671b5588210122ac809926a (patch) | |
tree | 50a40d10de00e6fde580e1e33d4840fc5da40b48 | |
parent | 1f3a0e3956dd80ce9f1dbd0a55d514d226e827b5 (diff) | |
download | rust-libzfs-7a1198cf3882e3d63671b5588210122ac809926a.zip |
gha: add mac build test
-rw-r--r-- | .github/workflows/mac.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml new file mode 100644 index 0000000..d6a2fa7 --- /dev/null +++ b/.github/workflows/mac.yml @@ -0,0 +1,41 @@ +on: + push: + branches-ignore: + - '**.tmp' + +name: mac +jobs: + mac: + runs-on: macos-10.15 + strategy: + matrix: + rust: + - stable + - beta + - nightly + - 1.48.0 + 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 + + - name: Download openzfs-on-osx + run: curl -o zfs.pkg https://openzfsonosx.org/forum/download/file.php?id=309&sid=f486243ccdc8e8e13894f14ce0b28d93 + + - 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 + + |