summaryrefslogtreecommitdiffstats
path: root/.github/workflows/rust-macos-dev.yml
blob: 76a409e35c4460eb17676580cc893380eefedf9a (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
name: MacOS build dev

on:
  push:
    branches: [dev]
  pull_request:
    branches: [dev]

jobs:
  check:
    name: Rust MacOS ${{ matrix.rust }}
    runs-on: macos-latest
    strategy:
      matrix:
        rust: [stable]
    steps:
      - uses: actions/checkout@v2
      - name: Install minimal ${{ matrix.rust }} rust
        uses: actions-rs/toolchain@v1
        with:
          override: true
          profile: minimal
          toolchain: ${{ matrix.rust }}
      - run: cargo -Vv && rustc -Vv
      - run: cargo check
      - run: cargo check --all-features
        if: ${{ matrix.rust == 'stable' }}
      - run: cargo fmt --all -- --check
        if: ${{ matrix.rust == 'stable' }}
      - run: cargo test
        if: ${{ matrix.rust == 'stable' }}