name: "mac build"

on:
    push:
        branches: [ master ]
    pull_request:
        branches: [ master ]

env:
    CARGO_TERM_COLOR: always

jobs:
    build_for_mac:
        runs-on: macos-latest

        steps:
        - uses: actions/checkout@v2
        - name: buildRelease
          run: cargo build --release --verbose
        - name: cleanAfterBuildRelease
          run: cargo clean
        - name: Build
          run: cargo build --verbose
        - name: Run tests
          run: cargo test --verbose