name: macOS

on:
  push:
    branches: [ master ]
    paths-ignore:
    - 'assets/'
    - 'dist/'
    - 'docs/'
    - 'snap/'
    - '.adr-dir'
    - 'Dockerfile'
    - 'LICENSE'
    - 'Makefile'
    - 'monolith.nuspec'
    - 'README.md'

jobs:
  build:

    strategy:
      matrix:
        os:
          - macos-latest
        rust:
          - stable
    runs-on: ${{ matrix.os }}

    steps:
    - run: git config --global core.autocrlf false

    - uses: actions/checkout@v2

    - name: Build
      run: cargo build --all --locked --verbose
